iOS / tvOS developer. Crazy coder and problem solver @ Radio Télévision Suisse (RTS)

Geneva, Switzerland
Joined February 2011
Interested in inspecting how many times a SwiftUI view body is evaluated? Here is a gist that might help: gist.github.com/defagos/6758…
2
1
1
6
Just improved the gist with the help of @WdKay so that views can be counted individually.
This is obviously inspired by body counters shown in Swift Playgrounds, but here displayed in your running app instead.
Finding myself embedding SwiftUI code into UIKit again, so here is a friendly reminder there is a simple way to send actions down the UIKit responder chain starting from a SwiftUI view
5
Samuel Défago retweeted
I made a Dash docset out of @defagos' post on SwiftUI layout behavior, for quick reference. Hope you are ok with that Samuel! github.com/manmal/swiftui-la…
1
2
1
20
Tip: You can capture the projected value of a @Published property (i.e. its associated publisher) in a capture list to incorporate user-driven sources of change into a pipeline declaration. More information in my updated article: defagos.github.io/declarativ…
4
I recently published an article discussing a way to build scalable declarative data pipelines using Combine. Could make for an interesting read near the fireplace if you missed my announcement tweet. xitter.cf/defagos/status/1470192…
Gathering data in an app can be a challenge, especially when several sources must be aggregated or when pagination is involved. My latest article discusses how Combine and reactive programming provide a declarative and scalable solution to this problem: defagos.github.io/declarativ…
3
Two years ago I would never have considered using reactive programming to write apps. I am now asking myself how I could live without it before, and I hope you'll understand why after having read my article. Probably my biggest aha moment as an Apple developer.
1
2
Gathering data in an app can be a challenge, especially when several sources must be aggregated or when pagination is involved. My latest article discusses how Combine and reactive programming provide a declarative and scalable solution to this problem: defagos.github.io/declarativ…
4
1
16
I just published an article about SwiftUI layout behaviors. If you are interested in learning more about SwiftUI layout principles this might be worth a read. Includes a view taxonomy covering SwiftUI built-in views in greater detail: defagos.github.io/understand…
26
4
121
Are you using `continuousGroupLeadingBoundary` as `orthogonalScrollingBehavior` in a compositional collection view layout? 🎉 iOS 14.5 fixes: - Scroll interruptions experienced during reloads. - Snapping on the last item (if non-integral number of items visible horizontally).
1
2
Having issues with crash log symbolication recently in projects enabled for bitcode? Does your project use SPM 5.3 to integrate packages containing resources? openradar.appspot.com/radar?…
1
Spending too much time facing iOS 14 regressions. Last one found: Custom UISlider drawing might break due to internal layout changes: developer.apple.com/forums/t…. Time for a new workaround.
1
The Google Cast UI customization API is probably the worst I have ever seen: cocoadocs.org/docsets/google….
If your application plays video or audio content, beware that iOS 14 introduced a leak and changes possibly impacting background playback support. Radars: openradar.appspot.com/radar?… openradar.appspot.com/radar?…
3
8
1
24
Follow-up about the player leak issue I was mentioning a few days ago. Problem is apparently outside AVKit and related to KVO. Presenting an AVPlayerViewController first makes the leak disappear. So here is our current workaround if it can help: github.com/SRGSSR/srgmediapl…
1
1
Didn’t realize that watchOS 7 would remove 3D Touch for all devices, even those with proper hardware support. While I can understand why this was done, I miss being able to quickly cleanup notifications with a firm press.
1
1
1
5
📣 New Blog Post: Disabling Keyboard Avoidance in SwiftUI's UIHostingController. Who would have thought that runtime trickery is still useful in SwiftUI times? Pretty sweet example for InterposeKit to dynamically subclass UIHostingView! steipete.com/posts/disabling…
5
15
4
81