The Ultimate Guide to Closures in Swift

Aasif
By Aasif | Last Updated on December 8th, 2021 12:00 pm | 6-min read

This tutorial dives into Swift closures. Closures are blocks of code that you can pass around in your code, as if you assign a function to a variable. Mastering closures is a crucial aspect of learning iOS development. If you had a tough time understanding optionals, then you’ll probably find the prospect of mastering Swift’s closures even more terrifying! Don’t worry though, they are more harmless than they look. And closures are useful, too! Here’s what you’ll learn: How clo [...]

Read More

Dates, DateComponents and Formatting in Swift

Aasif
By Aasif | Last Updated on December 8th, 2021 12:00 pm | 5-min read

How do you work with date and time in Swift? In this tutorial, we’ll discuss how you can convert date/time to strings, and vice versa, how date/time formatting works, how to calculate time durations, and much more. Here’s what we’ll get into: How to work with Date, DateFormatter and DateComponents The nitty-gritty of timezones, locales, and date/time formatting How to add “+2 months” to a given Date object (and more…) Calculating relative time strings, such as “2 months ag [...]

Read More

How To Solve SIGABRT Error in Xcode

Aasif
By Aasif | Last Updated on December 8th, 2021 11:56 am | 4-min read

One minute your iOS app runs fine in Xcode, and the next it has hopelessly crashed with a cryptic SIGABRT error. What’s going on!? In this tutorial you’ll learn: How to solve the “Signal SIGABRT” error in Xcode How to use some of the debugging tools in Xcode What SIGABRT stands for, and what its causes are 3 approaches to find the root cause of SIGABRT Table of Contents What Does “Thread 1: Signal SIGABRT” Mean? Check Your Outlets Check The Stacktrace Make an Ex [...]

Read More

Create an iOS Game with Swift and Xcode

Aasif
By Aasif | Last Updated on December 3rd, 2021 10:36 am | 15-min read

Let’s build a fun iOS game with Swift and Xcode! Fire up your Xcode, get your Swift hat on and get hacking with this fun game called Add 1. BOOYAH! In this tutorial, you’ll learn how to create a game for iOS with Swift. We’ll dive into Xcode, and you’ll learn how to work with variables, optionals, Interface Builder, Auto Layout, outlets, timers, and much more. It’s everything you need to get started with iOS development! Table of Contents What’s The “Add 1” Game? What [...]

Read More

How To: Xcode 12 Tutorial for Beginners

Aasif
By Aasif | Last Updated on December 3rd, 2021 10:36 am | 11-min read

In this tutorial, we’re going to take a look at the most important aspects of Xcode 12. You’ll get a tour around Xcode, so you can get up to speed with Swift programming and iOS app development. It’s Xcode 101! Here’s what we’ll get into: What’s Xcode and what’s it for? How to download, install and update Xcode SwiftUI, iOS’s new, exciting UI framework A birds-eye view of how to use Xcode Working with navigators and inspectors How building UIs with Interface Builder wo [...]

Read More