codelaby (@Codelaby) header
codelaby (@Codelaby) profile picture

Welcome to my coding journey! I share SwiftUI programming tips to help others learn and grow. Explore tutorials, code snippets, and more on my blog and Patreon.

Barcelona, España
Joined November 2009
Custom ArrangmentViewStyle
Building a custom ArrangementViewStyle in SwiftUI with a slot for compact layouts + onGeometryChange for orientation: View C compact size classes Stack secondary + primary vertically in portrait Fall back to .split otherwise #SwiftUI #iOSDev #iphoneDuo
4
494
Custom Arragement View Style 👇
2
108
Building a custom ArrangementViewStyle in SwiftUI with a slot for compact layouts + onGeometryChange for orientation: View C compact size classes Stack secondary + primary vertically in portrait Fall back to .split otherwise #SwiftUI #iOSDev #iphoneDuo
3
1
11
1,058
Comment glow-up in my SwiftUI hinge demo: state holder / hinge change listener / hinge available #SwiftUI #iphoneDuo #iosdev
5
7
487
A quick concept for how an iPhone version of Duo could be developed using native components.
TikTok has moved its tab bar from the side back to the bottom on iPhone Duo.
1
3
490
Testing ArrangementView(.split) + .splitArrangementLayoutRatio(idealHorizontal: 0.5, idealVertical: 0.4) in SwiftUI. #SwiftUI #BuildInPublic
2
7
354
Need to adapt your layout when a TabView sidebar is available? Read @Environment(\.isTabViewSidebarAvailable) inside any child view of your TabView it automatically tells you whether the sidebar is supported/active in the current context.
7
400
Adaptive Tab Navigation Define your tabs once and let SwiftUI shift cleanly between a bottom tab bar and a sidebar using .sidebarAdaptable, TabRole.prominent, and sidebar placement modifiers. Adapt the presentation, not the architecture.
1
7
314
2️⃣ Light tone behind the asset, medium background with dark or light text (WCAG contrast-checked)
1
76
1️⃣ Light tone behind the asset, dark background with medium text
1
56
Two variations of the Apple Store-style highlight card in SwiftUI: ⛳️ extracting the average color from the image, then generating light, medium, and dark palette variations. #SwiftUI #iOSDev
1
6
331