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
2️⃣ Light tone behind the asset, medium background with dark or light text (WCAG contrast-checked)
1
72
1️⃣ Light tone behind the asset, dark background with medium text
1
45
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
300
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.
1
1
6
604
Replying to @iamvishal16_ios
Depending on the design, the example includes both displaying the message statically and using a double-tap.
1
18
Building adaptive card compositions in SwiftUI! ✨ Supporting Tail (Portrait) & Wide (Landscape) layouts with: 🔹 Variable blur masks & scrim overlays 🔹 Real-time average color extraction 🔹 WCAG contrast ratio calculations for accessible typography #SwiftUI #iOSDev #Swift
3
8
531
Concept idea: When the device is folded (Passport/Stand) or in Split View, a single tap shows a subtle toast suggesting to unfold for the full experience. Want to proceed anyway? Just tap again within 3 seconds to trigger the action. #iphoneDuo #SwiftUI
1
4
425
Exist symbols name for represent device pose?
1
2
362
Building a clean fallback for the vertical toolbar detector
1
114
Handling availability gracefully: a custom ViewModifier fallback for the vertical toolbar detector on #iPhoneDuo. #SwiftUI #iOSDev
1
17
924
#SwiftUI tip building horizontal onboarding inside a .sheet for #iPhoneDuo use .ignoresSafeArea() on your paging ScrollView, remember to inject viewport.safeAreaInsets back into your page content along with .contentMargins(for: .container) so everything stays properly aligned
5
34
2,495
Selection Mode .multiple(min: 0, max: 3)
53
Replying to @SebJVidal
Container Margins is set from: .contentMargins(for: .container) the blue is my custom safeContainerMargins
1
1
144
Safe Area vs. Container Margins vs. Custom Safe Container Margins in SwiftUI 🔴🟢🔵 #SwiftUI #iponeDuo #iOS #ipadOS #macOS
5
37
2,381