My Dev Notes

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

Archive

Page 3 of 18

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.

Asset Catalog and Dark Mode

If you’re supporting iOS 13 minimally, you should give Asset Catalog and the system dark mode another look. It was in iOS 13 (back in 2019!) that Apple added dark mode support. ...

Run swiftlint in pre-commit hook

If you ever run swfitlint in a CI/CD pipeline, you might have experienced errors merely due to linting. You have to fix it, push it, then wait for another few minutes (or hours)...

CI