Arrays in Swift Explained

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

Arrays are fundamental building blocks of apps. In this tutorial you’ll learn how you can use arrays in your Swift code. We’ll discuss: How to create arrays, with literal syntax and initializers How you can modify an array by adding, removing and replacing elements How to iterate over array elements by using a for loop Table of Contents Creating an Array Adding and Removing Array Items Getting and Changing Array Items Looping Over an Array Further Reading Creating a [...]

Read More

How To: Build A Real-Time Chat App With Firebase And Swift

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

Let’s build a chat app! In this guide, you’re going to build a chat app for iOS with Xcode 9, Swift 4 and Firebase. When you’re done, you can chat real-time with multiple users! Firebase is perfect for building a chat app. It’s easy to use, can store a ton of data, and you can observe data changes in real-time! This app can serve as a foundation to build your own app, like iMessage, or you can follow along as a learning project. Table of Contents Getting Started: Creating The [...]

Read More

Lazy Computed Properties in Swift

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

Lazy computed properties make your iOS development more efficient and easier to read. It’s a bit of syntactic sugar around the lazy keyword and computed properties, as you’ll find out in this tutorial. Here’s what you’ll learn: What computed properties are, and when you should use them What lazy loading is good (or bad) for… How and why to use lazy computed properties We all know lazy programmers are the best programmers, so you’ll want to pay close attention in this blog [...]

Read More

The Swift 5 Cheatsheet (Updated!)

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:42 am

Why learn by heart if you can cheat? Grab my open source cheatsheet for Swift 5, including common syntax for functions, variables, collections, Object-Oriented Programming, closures, generics, error handling and more! In This Cheatsheet Compared to the previous versions of the cheatsheet, a lot has changed. It’s expanded, made clearer, upgraded and updated. I’ve added explanations alongside the code examples to help beginner iOS developers get to grips with Swift from a birds-eye view. [...]

Read More

Get Started with SwiftUI for iOS

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

SwiftUI is a framework to build User Interfaces (UI) for iOS apps. With SwiftUI, you create the UIs of your iOS apps entirely with Swift code, using a novel declarative approach. SwiftUI was introduced during WWDC 2019. It’s a completely new paradigm and it changes how we think about building User Interfaces for iOS apps. Right now it’s an alternative to UIKit/Storyboards, but SwiftUI has the potential to become the standard for building UIs on iOS and beyond. In this tutorial, you’l [...]

Read More

Most Popular Posts