Aug 9, 2020, 1:54 PM
Alert is the equivalent to UIKit's UIAlertView in SwiftUI. This post is about creating and presenting an alert in SwiftUI.
The post SwiftUI: Alert appeared first on Thomas Hanning.
Swift: Property wrappers
Aug 2, 2020, 2:32 AM
Property wrappers enables you to reuse code that specifies the access pattern of a property.
The post Swift: Property wrappers appeared first on Thomas Hanning.
The Advantages of SwiftUI
May 24, 2020, 5:19 AM
Almost a year ago Apple introduced SwiftUI at WWDC 2019. It’s still a very young technology but it’s quite clear that it's the future not only of iOS development, but of macOS, watchOS, and tvOS development as well. What are the advantages...
Swift: The differences between structs and classes
Jun 10, 2019, 9:01 AM
Compared to many other programming languages, structs are very powerful in Swift. Hence, they should be used more often. Hint: This post is using Swift 5 Similarities First, let’s start by talking about the similarities between structs and...
Swift: Reference Equality and Value Equality For Classes
Feb 2, 2019, 6:00 PM
There are two ways for testing the equality of class instances: reference equality and value equality. In this post we will discuss both of them. Hint: This post is using Swift 4 The Identity Operator === By using the identity operator...
How iOS Development Has Evolved Over The Past 8 Years
Jan 4, 2019, 5:15 AM
I’ve been a full-time iOS developer for over 6 years now and I started learning iOS development 8 years ago. A lot has changed over the years. In this post I want to talk about the biggest changes I’ve experienced. Swift Obviously...
Sets in Swift
Nov 6, 2018, 12:27 PM
Sets are one of Swift’s collection types. A set stores an amount of unique values, that have no particular order. You can imagine a set to be like a box of billiard balls: They are all unique in terms of color and number, but they don’t...
MFMailComposeViewController – sending emails from an iOS app
Aug 15, 2018, 4:56 PM
MFMailComposeViewController provides an easy way to present a view controller, that allows to write, edit and send an email. It’s presented modally, so the context of the app won’t be left. Hint: This post is using Swift 4 and iOS 9...
Properties in Swift
Mar 15, 2018, 1:49 PM
There are two types of properties in Swift: stored properties and computed properties. Stored properties store values (constant or variable) as part of an instance or type, whereas computed properties don’t have a stored value. Hint:...
Swift: Comparing Enums With Associated Values
Feb 24, 2018, 8:13 AM
Comparing enums in Swift is very straightforward – as long as they don’t have associated values. In this post we will discuss, what you can do in that case. Hint: This post is using Swift 4 Content [toc] Video Comparing Enums...
01/18 – The Best iOS Development Links
Feb 4, 2018, 3:37 PM
The best iOS development links from January 2018. Swift Swift Non-Nil Values In An Array Of Optionals Swift is a very straightforward language, but when it comes to optional pattern matching, there are some very useful things that are not...
Xcode for Windows?
Jan 30, 2018, 11:33 AM
Xcode for Windows – many developers are wondering whether that exists. In this article we will answer this question. Furthermore, we will discuss which alternatives you have, if you don’t have a Mac, but want do to some iOS and Swift...
Push Notifications and Local Notifications – Tutorial
Jan 24, 2018, 4:06 PM
By using notifications, you can notify the user about important events even when the app is not running. In this tutorial you will learn how you can implement both local and push notifications. Hint: This tutorial is using Xcode 9 and iOS...
iPhone X: Safe Area
Jan 10, 2018, 1:44 PM
iPhone X is a huge update and you should adapt your apps for it. In this post we will discuss how you can use the so-called safe area to do so. Hint: This post is using Xcode 9 and iOS 11 Safe Area The iPhone X has an almost fullscreen...
Top Ten Most Popular Posts Of 2017
Jan 2, 2018, 2:05 PM
The beginning of the year is a good time to look back, so I put together a list of the ten most popular posts of 2017. The ranking is based on the number of page views. #1: UITableView – Tutorial For Beginners UITableView is one of the...