@ObservedObject and Friends in SwiftUI
Feb 11, 2021, 6:14 AM
In this tutorial, we'll discuss an approach for 2-way data flow between an external data source and changing that data in your app. You'll learn how to work with @ObservedObject, ObservableObject, @Published, @Binding, Combine, MVVM, and...
Networking in Swift with URLSession
Feb 8, 2021, 12:00 AM
Almost every app communicates with the internet at some point. How does that work? And what Swift code can you use to make HTTP networking requests? Let's find out!
The post Networking in Swift with URLSession appeared first on...
Inheritance and Subclassing Explained in Swift
Feb 3, 2021, 7:59 AM
With subclassing, a class can inherit functions and properties from another class. That allows you to reuse your code, which is a good thing. In this tutorial, we'll discuss how you can use subclassing and inheritance in Swift.
Properties in Swift Explained
Jan 28, 2021, 10:59 AM
You use properties in Swift to tack some data onto an object, like 'cookie.flavor = "Chocolate Chip"'. Properties in Swift pack quite a punch! In this tutorial, we're going to discuss stored/computed properties, getters and setters, and...
Classes in Swift Explained
Jan 27, 2021, 10:06 AM
Classes are one of the most fundamental building blocks of Swift code. In this tutorial, we're going to discuss how classes work, what instances are, how inheritance works, and much more.
The post Classes in Swift Explained appeared first...
How To: Using Notification Center In Swift
Jan 22, 2021, 12:00 AM
Swift's NotificationCenter is super useful for sending data from one part of your app to another. But how does it work? When do you use it? You'll find out in this tutorial, including a ton of code examples, use cases, and helpful advice....
Struct vs. Class in Swift Explained
Jan 21, 2021, 12:00 AM
What's the difference between classes vs. structs? They're so alike! It's best to use structs by default, and classes in specific scenarios – but when? Let's find out!
The post Struct vs. Class in Swift Explained appeared first on...
Working with Codable and JSON in Swift
Jan 20, 2021, 12:00 AM
Every webservice uses JSON nowadays. You can use the Codable protocol to encode and decode data, like JSON, to Swift objects. In this tutorial you learn how to map Swift objects to JSON with the Codable protocol. Let's get started!
Quit Coding? Here’s How To Start Building Apps Again
Jan 17, 2021, 12:00 AM
Coding is hard, right? It's easy to give up – and that's OK. Here's how you can get back to coding again, after you've quit.
The post Quit Coding? Here’s How To Start Building Apps Again appeared first on LearnAppMaking.
Optionals in Swift: The Ultimate Guide
Jan 7, 2021, 12:00 AM
Do you find Swift's optionals confusing? In this article, I'll give you a complete tour of optionals in Swift. We'll find out what optionals are, why they're useful, and how you can work with them to make your code safer, bug-free and...
Working with Recursive Algorithms in Swift
Jan 5, 2021, 12:00 AM
A recursive function is a function that calls itself. It's an intriguing approach to solve specific coding challenges. In this article, you'll learn how to work with recursion in Swift.
The post Working with Recursive Algorithms in Swift...
Learn Swift Programming The Simple Way
Jan 4, 2021, 12:00 AM
Swift is an easy to learn programming language for iOS, macOS, and more. Learning how to code Swift is simple, a lot of fun, and you can build awesome apps with it! In this article, we'll discuss simple approaches to learn Swift...
How To Learn iOS App Development
Jan 1, 2021, 12:00 AM
In this tutorial, we'll discuss how you can learn iOS app development. When you've finished reading this article, you will have a step-by-step plan for learning how to code, and you'll be ready to build your own iOS apps from scratch!
Conway’s Game of Life in Swift
Dec 18, 2020, 2:18 PM
Conway's Game of Life is a fun simulation game, and we're going to code it in Swift! Based on 3 simple rules, we'll see which of the pixels makes it to the next generation. It's great coding practice, perfect for a Sunday afternoon.
Working with List in SwiftUI
Dec 8, 2020, 10:51 AM
A List view in SwiftUI shows rows in a vertical, single column. It's a scrollable list of data that you can interact with. In this tutorial, we'll discuss how you can create and customize a List view with SwiftUI.
The post Working with...
The @State Property Wrapper in SwiftUI Explained
Dec 1, 2020, 9:00 AM
With @State, you tell SwiftUI that a view is now dependent on some state. If the state changes, so should the User Interface. It's a core principle of SwiftUI: data drives the UI. But how does that work?
The post The @State Property...
How To: Xcode 12 Tutorial for Beginners
Nov 26, 2020, 12:00 AM
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!
The post How To: Xcode 12 Tutorial for...
How To Create a New Xcode App Project
Nov 19, 2020, 8:13 AM
You'd think that creating a new app project in Xcode is as simple as File → New → Project, but that approach actually hides interesting complexity. In this tutorial, we'll discuss Xcode's new project options and the effect on your app.
How to Use “where” in Swift
Nov 11, 2020, 6:33 AM
You use the 'where' keyword to filter things in Swift. Loop over all items 'where x = true', for example. It's simple and powerful! In this tutorial, we'll discuss the various scenarios in which you can use 'where' in Swift.
The post How...
Fun with print() in Swift
Nov 5, 2020, 10:52 AM
You use print() in Swift to print text to the Console. It's super useful for finding out what's going on in your code. In this tutorial, we'll discuss how you can customize print() to code more productively.
The post Fun with print() in...
How To Fix Strong Reference Cycles in Swift
Oct 30, 2020, 12:17 PM
A strong reference cycle causes a memory leak in your iOS app, and that's a bad user experience. In this tutorial, we'll discuss what causes strong reference cycles and how you can resolve them.
The post How To Fix Strong Reference Cycles...
Weak vs. Strong References in Swift
Oct 21, 2020, 7:19 AM
Creating a strong reference to an instance in Swift, means that the instance is kept in the iPhone's memory until you're done with it. You can also create weak references. Both are part of the memory management mechanism called ARC. In...
Automatic Reference Counting (ARC) in Swift
Oct 15, 2020, 9:43 AM
Automatic Reference Counting (ARC) is a mechanism to manage memory in Swift. Working with ARC concepts is essential in day-to-day iOS development. In this tutorial, we'll discuss how ARC is used to manage memory on iOS.
The post Automatic...
Self and self in Swift
Oct 8, 2020, 11:01 AM
In Swift, "self" typically refers to the current object within a class or struct. But there's more: "self", "Self" and even ".self". How does that work? Get ready for some introspection and metaprogramming, as we discover The Self in...
Keypaths in Swift Explained
Oct 5, 2020, 8:28 AM
With keypaths in Swift, you're referencing a property, as opposed to its value. You can pass these keypaths around in your code, and create all sorts of metaprogramming mayhem with it. Let's find out more!
The post Keypaths in Swift...
Working with Files on iOS with Swift
Oct 1, 2020, 11:36 AM
You use FileManager to work with files and directories on iOS. It's a Swift API that helps you read from, and write to, various data and file formats. In this tutorial, you learn how to work with files on iOS with Swift.
The post Working...
Storing Data with NSCoding and NSKeyedArchiver
Sep 27, 2020, 11:14 AM
You can use NSCoding and NSKeyedArchiver to save and load simple data objects with Swift. It's perfect for scenarios when you don't need a more complex tool, like Core Data. Let's dive in!
The post Storing Data with NSCoding and...
Strings in Swift Explained
Sep 22, 2020, 7:36 AM
You use strings in Swift to represent text. They're strings of characters, use the String value type, and are stored with the intriguing Unicode/UTF-8 data format. Let's find out more about strings in Swift!
The post Strings in Swift...
Ranges in Swift Explained
Sep 9, 2020, 11:31 AM
You use ranges in Swift to define values between a lower and upper limit. Ranges are useful for creating slices of arrays, checking if a value is contained in a range, and much more. Let's find out how they work!
The post Ranges in Swift...
How To Download, Install and Update Xcode
Sep 1, 2020, 11:16 AM
Xcode is the Mac app that developers use to create apps for Apple's platforms, like iOS. In this tutorial, you'll learn how you can download and install Xcode on your Mac.
The post How To Download, Install and Update Xcode appeared first...
Working with Stacks in SwiftUI
Aug 28, 2020, 9:20 AM
You use stacks in SwiftUI to group views together. You can choose from the VStack, HStack and ZStack, and combine them to build complex layouts. In this tutorial, you'll learn how to use stack views with SwiftUI.
The post Working with...
Create UIs with Views and Modifiers in SwiftUI
Aug 23, 2020, 6:27 AM
How do you create User Interfaces with SwiftUI? In this tutorial, we'll dive into the fundamental concepts and approaches that make SwiftUI work. We'll discuss views and modifiers and create a card view in the process. Let's get...