My Dev Notes

Figuring out software, one rabbit hole at a time. 🍎 🛠️ 🤖

Archive

Page 3 of 19

Why you should use OSLog in 2023

OSLog is a unified logging framework available for a long time, but I haven’t adopted it much. But things are about to change with a new feature from WWDC 2023.

Guide to Apple Sign In

This is a developer guide on integrating Apple as an OAuth provider on Apple platform, as well as for other platforms such as Android/Web.

Fastlane is in shambles

Fastlane was great since the early days of iPhone development, but they are on the downhill, abandoned by Google daddy.

Swift Structured Concurrency

Task(priority: .background) can still run on the main actor. Priority doesn’t select a thread. I got that distinction wrong in the original version of this note.

How to create table using UICollectionView

Since iOS 14, there are lots of “features” and changes to UICollectionView, making it possible to create a standard table/list UI. This WWDC 2020 session introduced the modern w...

StackOverflow traffic is declining

This is an insight into programmers’ favorite website, as I have unlocked the secret access. This post has screenshots of the analytic data, or you can also watch my vlog.

The dumbest thing about imageLiteral

If you have used #imageLiteral you might understand how dumb an Xcode feature can be. It is most likely a half-baked idea. Won’t be surprise to see them deprecate it.

Improve App Launch Time 2022 Edition

Improving app launch time is an evergreen topic, with Apple sharing tips since the first iOS SDK. Overtime, the techniques will change. I was looking at it again, after many yea...

iOS

Replacing if let in Swift 5.7

With the new Xcode 14, the biggest feature 😂 of Swift 5.7 has to be the enhancement of the unwrapping syntax. We can delete a lot of code with a simple find & replace.

AppStorage, and observing a Binding

@AppStorage is a property wrapper for UserDefaults, provided by SwiftUI framework. It is very simple to use, but in practice, some simple things are not obvious.

How to use Combine

Most developers have experience using RxSwift. But since iOS 13, Apple has provided their 1st party framework, tightly integrated into other frameworks, including SwiftUI.