My Dev Notes

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

Archive

Page 2 of 18

My 10 Tips for Using Claude Code

Claude Code is a powerful AI-powered coding assistant that can significantly boost your development productivity. Here are my top practical tips for getting the most out of this...

Plurals with SwiftUI

In the new string catalog, you can easily right click > Vary by Plural > Edit it as you like.

PITFALL: SwiftUI swipeActions not working

It is very easy to create swipe action for your rows. But there are SwiftUI nuances that might not show the buttons when you swipe. I hope this will save you some hours.

Remove unused code with Periphery

Periphery is one of my favorite tool. It works well to scan a project and provide warnings for those unused code. It’s a good chore to declutter your codes once in a while. You ...

Do NOT init State externally in SwiftUI

There is a pitfall with initializing a State or a StateObject. I have provided a snippet on how to init, but it really needs to provide the following warning.

How to create AsyncStream with a publisher

To use for await item in streamOfItems {...}, you need an AsyncStream. It is very common that you already have an existing Combine publisher, and you want to use the nice Swift ...

How to get/set keypath using string

Trying to achieve this might sound silly, as the goal of keypath is to eliminate string and be strict. But I do need it in a particular problem, where I need to keep a list of p...

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.