Should You Learn SwiftUI or UIKit?

Aasif
By Aasif | December 22, 2021 4:47 pm  | 4-min read

Should you learn UIKit or SwiftUI? That’s the question we’re discussing today. UIKit is proven, extensive, the status quo. SwiftUI is the newcomer, innovative, flexible. You use both to build UIs on iOS. Which is the best tool for you? In this tutorial, we’ll discuss: Comparing UIKit vs. SwiftUI – what are the differences? How you can learn SwiftUI and UIKit, and where to start Common arguments and objections for learning one or the other Should you learn SwiftUI now, or wait? [...]

Read More

How To Design Your App’s Database

Aasif
By Aasif | December 22, 2021 4:19 pm  | 5-min read

How do you design your app database in Swift? Every iOS app has a database these days, whether it’s locally or in the cloud. Tools like Realm and Firebase take care of database setup and management, but how do you design the data that goes into the database? In this tutorial I’ll walk you through the process of app database design. We look at database tools, how to structure your data, and how to create relationships. Table of Contents Types of Mobile App Databases The Schema: [...]

Read More

Get Started with Debugging in Xcode

Aasif
By Aasif | December 22, 2021 3:55 pm  | 4-min read

Finding and fixing bugs in your app is exciting, isn’t it? … No!? You probably don’t enjoy debugging in Xcode, but it doesn’t need to be a drag. In this tutorial, you’ll learn a few expert techniques that make debugging your iOS apps a breeze. Here’s what we’ll get into: How you can use Xcode’s debugging tools Poor man’s debugging with print() Breakpoints, exceptions and steppers Compilation vs. runtime errors A helpful workflow to find and fix bugs Making mistakes [...]

Read More

Working with Recursive Algorithms in Swift

Aasif
By Aasif | December 22, 2021 2:41 pm  | 4-min read

A recursive function is a function that calls itself. It’s an intriguing approach to solve specific coding challenges. In this tutorial, you’ll learn how to work with recursion in Swift. Here’s what we’ll get into: What is recursion and how does it work? Useful applications of recursion Why it’s smart to stop the recursive function How recursion is especially suitable for certain problems Table of Contents What Is Recursion? Recursion: Does It Ever End? The Beauty [...]

Read More

Let’s Solve The FizzBuzz Challenge in Swift

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:44 am | 5-min read

FizzBuzz is a legendary coding challenge. You simply must give it a try! But… what approaches can you use to solve FizzBuzz with the Swift programming language? In this tutorial, we’re going to solve the FizzBuzz challenge in three different ways: With conditionals With the switch statement With .map() Table of Contents What is FizzBuzz? Solving FizzBuzz with Conditionals Solving FizzBuzz with Switch and Pattern Matching Solving FizzBuzz with “map(_:)” Further Readi [...]

Read More

Most Popular Posts