How to use the new Regex with literal slash syntax
In the latest Swift, you can create a Regex (iOS 16+) using slash syntax such as /(\d+)/ (to capture 1 or more digits).
Figuring out software, one rabbit hole at a time.
In the latest Swift, you can create a Regex (iOS 16+) using slash syntax such as /(\d+)/ (to capture 1 or more digits).
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.
You can use GitHub CLI to clone all easily.
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.
There are a number of ways to bump a build number.
This is how you can speed up your CI when using Github Action.
This is Part III of integrating Google ads. Previously:
In the previous post I covered the basic setup of Google Ad Manager display ads.
This website serves ads using Google Adsense. 🙇♂️ This is the simplest way to pay for my coffee.
Fastlane was great since the early days of iPhone development, but they are on the downhill, abandoned by Google daddy.
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.
This template is for multiplatform app supporting both iOS and macOS in the same target.
If you create a new project in 2023, these 2 components are no longer a thing.
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...
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.
If you use Swift Package, there are 2 pesky problems whenever you create a new file.
Enable Push Capability
If you do run unit tests, here’s 1 useful tip to make your tests run faster, and more predictable.
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.
GitHub pull request (PR) provides 3 options for a PR merge. You can (1) regular merge, (2) squash merge, or (3) rebase.
Long-lived branches require frequent merge from the master or main branch, and resolving conflicts repeatedly. Here are some tips on how to perform the merge.
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...
If your debugger output is producing too many log messages, here are some ways you can reduce it.
It is common for a CI/CD pipeline to run a build on Github when a certain tag is pushed. For example, if I want to release v1.2 of an app, I can simply tag v1.2, push, and that ...
Sometimes you need to run an app on simulator without building in Xcode. It is especially useful for QA/Test engineers. While they usually has an arsenal of iPhones, there is 1 ...
I was naive to create a view model using a service that is also an ObservableObject. It looks like this:
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 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.
Factory is the Dependency Injection (DI) library which will replace it’s popular predecessor – Resolver.
Most developers have experience using RxSwift. But since iOS 13, Apple has provided their 1st party framework, tightly integrated into other frameworks, including SwiftUI.