Duc Ng (@duc_ninja) header
Duc Ng (@duc_ninja) profile picture
Singapore
Joined April 2013
Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)Photo by Duc Ng (@duc_ninja)
With this week’s release of the Xcode 11.4 beta, you can *finally* pass a key path to map, filter, and wherever else a “getter” function is allowed! We’re gonna have to retire our custom “^” operator.
3
21
1
143
Container Views is an awesome way of the view decomposition in SwiftUI. It allows us to separate data-flow and rendering. It also makes possible reuse of SwiftUI views between iOS and watchOS or any other supported platform. mecid.github.io/2019/07/31/i…
3
33
If you think iOS signing is complicated, look at these 8 options of Mac signing. Choose the right one.
6
12
73
Seriously big hats off to the Xcode team for memory graph debugger. Found and fixed a retain cycle in minutes by seeing what object had a hold of another one, and the exact line in code that was causing. If you're not using, you're missing out!
11
71
4
413
OmniDiskSweeper 1.12 is now available! This update adds support for the new volume groups introduced in macOS Catalina (v10.15) (with a read-only root volume and a read-write data volume). You can download the latest build here: omnigroup.com/more Enjoy!
1
5
19
Xcode 11: just hold 'cmd' to get a list of all file properties and methods. #Xcode11 #iosdev #swiftlang
9
308
38
924
SwiftUI: Getting Started 📚 Build better apps with SwiftUI: medium.com/flawless-app-stor… Setting up a SwiftUI project: medium.com/flawless-app-stor… Understanding State: medium.com/flawless-app-stor… SwiftUI + Combine: medium.com/flawless-app-stor… VC Lifecycle in SwiftUI: medium.com/flawless-app-stor…
2
28
1
145
Thanks to PropertyWrapper in Swift 5, you can do stuff like that, which make UserDefaults a total breeze.
2
8
56
Personally, one of the hardest topics in Swift for me to get right avanderlee.com/swift/weak-se… 🤷🏻‍♂️ When to use weak self? 🤯 When to use unowned self? #swiftlang #iosdev
6
14
2
62
Optional enum 不能直接 case 是多麼麻煩的事。這個問題竟然是列為 starter bug 修掉。hackingwithswift.com/article…
1
1
1
New in Swift 5: Protocols can now "inherit" from classes - requiring all types conforming to that protocol to also inherit from the specified class 👍 I'll be posting a LOT more Swift 5 content over the next weeks & months - and also update previous articles with new features 🚀
16
179
13
659
Duc Ng retweeted
3
83
8
292
Use explicit type name if your enum has `case .none`, otherwise you may get unexpected behavior. #swift #Optional
2
5
It's been a while since I last did a Swift tip tweet - so here we go! 😀 Tuples can not only be super useful in order to group multiple related local variables into one, but can also be a great way to combine throwing expressions 👍 👉 More on tuples: swiftbysundell.com/posts/usi…
13
92
7
477
My second talk at @iosconfsg on behalf of @worldlinexpert was all about how Swift KeyPaths can be leveraged to build some pretty effective syntax and patterns. Here's a thread that recaps some of the key ideas ⤵️
4
17
4
66
📱 Mobile board with the freshest designs by Alan Castellanos ft Yogesh Solanki → uplabs.com/collections/mobil…
1
12
81
The heart particles/waveform animations in the ECG app were done using Metal/MetalKit
11
60
2
629
Messing with face tracking in Codea using #ARKit on the new iPad Pro. Occlusion face mesh + blend shapes so I can detect jaw movements 👌
I got tired of writing: guard let self = self else { return } So I created a code snippet:
3
6
24