Aug 11

How to Trigger an Action When a SwiftUI Toggle Changes

Sometimes we may need to call an action every time a toggle changes instead of relying purely on a state property to keep our toggle up to date. Luckily this is easy to do. An action can be ...

Jun 8

How To Add A Search Bar To A List In SwiftUI

SwiftUI now has the ability to add a search bar in iOS 15. This is done through the searchable() modifier which adds a search bar under your navigation view automatically. To get started, we ...

Mar 8

How To Fetch Data From An API In Swift

Introduction Fetching JSON data from a remote API really is the bread and butter of iOS development so it’s important for you to know how to do it in a neat and reusable way. Today, we will ...

Jul 5

Working With Text In SwiftUI

In this article, you’ll learn about all the modifiers you may need for laying out text in SwiftUI. Feel free to come back any time as a reference, this article has been designed to be ...

Jun 13

How To Start An Xcode Project Without Storyboards

In this guide, you’ll learn how to start a new Xcode project without storyboards. I prefer to take a full programmatic approach to laying out my UI so when I start a new project, I alw ...

Jun 5

How To Add Dependencies With The Swift Package Manager

The Swift Package Manager is a dependency manager built straight into Xcode. Apple added official support for it in Xcode 11 and it has been getting better ever since. Using SPM means all de ...

May 30

How To Manage Dependencies With Carthage

Carthage is a dependency manager that makes using third party dependencies in your project easy. It’s slightly different to its more popular counterpart Cocoapods, where instead of cre ...

May 22

How To Manage Dependencies With Cocoapods

Dependencies allow us to use other people’s code in our own projects. A good way to add dependencies to your own Xcode project is to use a dependency manager. In this guide, we will be ...

Feb 29

Dismiss Keyboard When Tapping Away

Today, we are solving a common issue that many developers face; how to hide the keyboard after it has been used to fill out information. This is vital for your app because if the keyboard do ...

Oct 1

What's New in Xcode 11

Xcode 11 includes a bunch of exciting new features. Today we have a look at the main features that will be useful in everyday life. Language Updates and Version Updates Xcode 11 finally brin ...

Sep 6

How To Check The Total Lines Of Code In Your Xcode Project

When I’m working on a swift project, I sometime’s get the urge to know how many lines of code I have actually written. It would be interesting to see. However, I’m not just ...

Aug 17

How To Hide The Tab Bar When Showing A New View Controller

Sometimes, when using a UITabBarController, you want to push a new view controller without the tab bar. Unfortunately, the default behaviour for a UITabBarController is to show the tab bar n ...