PITFALL: Beware of retain cycle when passing a func as a closure parameter
I fell into this trap and had a retain cycle.
Figuring out software, one rabbit hole at a time.
I fell into this trap and had a retain cycle.
This is cool trick to inject a certain property for a type.
Unit testing for networking API requires some work because to mock the HTTP response is non-trivial, be it using 1st party URLSession or 3rd party Alamofire.
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. ...
A gitattributes template for Xcode projects, specifying how files are to be diff and merged for pbxproj file format.
Xcode comes bundled with a version of Swift. You can refer to this list for the shipped versions. Sometimes, you won’t want to upgrade Swift for your project. So if you update X...
Since a few years ago, Xcode has added an awesome feature. Automatically manage signing is a simple checkbox that will make life so much happier for all Apple developers. No lon...
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)...
GitHub Actions are jobs that can be run on GitHub machines, which is usually used for CI/CD. But you can also conveniently add manual workflows with custom inputs, then click to...
If you have a personal account and a work account, then it gets more tedious to use both on the same computer. Here is a step-by-step guide on how to set them up.
It is best to stick to either one framework, and not mix. But if you do need to.. here is how you can communicate between the 2 frameworks, bi-directionally.
Developers are most excited to kill off support for older platform, while business people are not. So how do you decide?
One of the common UIKit pattern is to initialize and configure controls in this way:
Install Rust
There are many details when it comes to testing IAP. This is a quick reference guide.
An App Store reviewer rejected my app update because the ATT prompt is not showing up (it did work in the last update).
Octopress is dead and it no longer update. While it has been nice, we can live without, or replace it.
This is a basic guide to HealthKit, covering how an app can insert data to Health app via the framework.
I am not surprised with rejections. This time, the app reviewer has issue with my app using HealthKit.
Sorry, there is no keyboard shortcut that works (at least on Monterey beta).
With Swift 5.5 new concurrency syntax, many frameworks have been updated. This post cover the basic URLSession operations.
This is yet another way to do concurrency, this time in Swift 5.5 with much cleaner code. First introduced in WWDC 2021, but it won’t be the last we see of it.
I have been using my Synology NAS for a while, but the NAS recycle bin is always empty.
Using ffmpeg on M1 Mac is slow, hot, and the fan will kick in.
In Google PageSpeed, one of the “opportunity” to making webpages to load faster is to load web fonts asynchronously.
I encountered this error when uploading a binary using Xcode.
I have an iPhone XS running iOS 14, and it suddenly switched off, and won’t turn on again.
Google provided their User Messaging Platform (UMP) for showing a pre-permission prompt.
There are 3 new tech talks from Apple on improving UI performance: 10855, 10856 and 10857
In this post, I will share my experience while interviewing for the position of iOS Software Engineer, Singapore. I will reveal the questions they ask. Hopefully it can help you!