Samuel Défago

1K posts

Samuel Défago banner
Samuel Défago

Samuel Défago

@defagos

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

Geneva, Switzerland Katılım Şubat 2011
427 Takip Edilen672 Takipçiler
Samuel Défago
Samuel Défago@defagos·
Just improved the gist with the help of @WdKay so that views can be counted individually.
English
0
0
0
0
Samuel Défago
Samuel Défago@defagos·
@cocoafrog Instruments also groups events by view type, so when several instances are simultaneously on screen I find it easier to find out what happens with each one of them. But of course I still find SwiftUI Instruments tools invaluable in other scenarios.
Samuel Défago tweet media
English
1
1
0
0
Samuel Défago
Samuel Défago@defagos·
@cocoafrog I quite like being able to understand how the UI I am working on behaves at a glance, but Instruments mostly logs tons of events that lack a consolidated view AFAIK. This is why I wrote this helper.
English
0
1
0
0
Samuel Défago
Samuel Défago@defagos·
This is obviously inspired by body counters shown in Swift Playgrounds, but here displayed in your running app instead.
Samuel Défago tweet media
English
0
0
0
0
Samuel Défago
Samuel Défago@defagos·
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: #user-driven-data-emitters" target="_blank" rel="nofollow noopener">defagos.github.io/declarative_re…
Samuel Défago tweet media
English
0
0
4
0
Samuel Défago
Samuel Défago@defagos·
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.
English
0
1
2
0
Samuel Défago
Samuel Défago@defagos·
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/declarative_re…
English
0
4
16
0
Samuel Défago
Samuel Défago@defagos·
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/understanding_…
English
0
26
124
0
Samuel Défago
Samuel Défago@defagos·
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).
English
0
1
2
0
Samuel Défago
Samuel Défago@defagos·
@antiraum Thanks for the info. My sample project works also correctly on iOS 14.2 beta 3. Seems promising 🤞
English
0
0
0
0
Thomas Hess
Thomas Hess@antiraum·
@defagos Thanks for letting me know. That’s great news. I could also reproduce the fixed behaviour with beta 3 on an iPhone XS.
English
1
0
0
0
Samuel Défago
Samuel Défago@defagos·
@antiraum It seems the issue will be fixed in iOS 14.2. The behavior is namely correct in 14.2 beta 2 with my test device (an iPhone 7). I’ll test again with the final version and other devices, but this seems promising.
English
1
0
0
0
Thomas Hess
Thomas Hess@antiraum·
@defagos We are making the same compromise in our app (background playback is paused when locking the device). It’s seems Apple is doing the same, e.g., in the TV app. Thx for posting updates.
English
1
0
0
0
Samuel Défago
Samuel Défago@defagos·
@0xced @pyby85 On aura probablement une beta publique quand ce sera moins en chantier, mais en attendant ça peut éventuellement faire l’affaire 😅
Français
0
0
0
0