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
🗯️Unleash your inner geek with the Binary Clock Widget, available on the App Store for iPhone and iPad. 🔗 apps.apple.com/us/app/widget…
1
10
7,367
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
491
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,054
Custom Arragement View Style 👇
2
108
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
483
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
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
2️⃣ Light tone behind the asset, medium background with dark or light text (WCAG contrast-checked)
1
76
Building Apple Store-style product highlight cards in SwiftUI: • Region-based color sampling via Core Image (CIAreaAverage) • Light, medium & dark HSB palettes • Split layout + WCAG contrast checks Full code & breakdown in the replies below
Playing around with an idea in #SwiftUI: grabbing the dominant color from an image and generating a palette (light, medium, dark) to adapt the card's design.
5
4
347