📙 FREE SwiftUI book: bigmtn.studio/

Joined January 2017
1,909 Photos and videos
⭐️I like how Apple is giving us SwiftUI skills that we can export from Xcode 27 to use in our own IDEs. 👍 #wwdc26 #swiftui
1
1
11
658
❓How do I control spacing between rows in LazyHGrid? 💡Use the spacing parameter in GridItem to set the gap. You can specify different spacing values (40, 20, etc.) or omit it for a default value. 👉Free #SwiftUI picture book: bigmtn.studio
1
362
Mark Moeykens retweeted
🏳️Time to face obvious facts. iOS Dev courses are no longer viable income for me. I've been disrupted. I'm looking to join a team working on a cool iOS project (full-time or part-time contract). Remote. RT's are appreciated! DMs open.
92
154
810
237,406
❓What is one way to format currency values in SwiftUI? 💡Use Text with .currency format parameter and specify currency codes like "USD", "EUR", "GBP", or get the locale's current currency with locale.currency?.identifier. 👉Free #SwiftUI picture book at bigmtn.studio
1
9
681
❓How do I create links with different button styles in SwiftUI? 💡Use the Link component with buttonStyle modifiers like .bordered and .borderedProminent, plus shape modifiers like .capsule or .roundedRectangle for beautiful, tappable links. 👉Free #SwiftUI picture book at bigmtn.studio
10
935
❓What is a quick and easy way to create color gradients in SwiftUI? 💡Every color has a gradient property that transitions from a lighter version to itself. Simply use .fill(color.gradient) on shapes like RoundedRectangle to create gradients. 👉Free #SwiftUI picture book at bigmtn.studio
1
6
735
❓Can I mix other views within a grid layout in SwiftUI? 💡Yes! You can directly add other views inside a Grid view. This allows the view to follow its own layout rules instead of being constrained by the GridRow. 👉Free #SwiftUI picture book at bigmtn.studio
1
7
837
❓Do I need Identifiable on my Generable object used in an array? 💡If using session.respond(to:), yes add Identifiable. If using session.streamResponse(to:), no—a stable GenerationID is automatically created for you. 👉Free #SwiftUI picture book at bigmountainstudio.com
6
700
❓How do Shared Modifiers work differently in Group vs VStack in SwiftUI? 💡In a Group, modifiers are applied INDIVIDUALLY to each child view. In a VStack, modifiers are applied to the entire container as one view. 👉Free #SwiftUI picture book at bigmtn.studio
1
2
9
873
❓How do I create multicolor SF Symbols in SwiftUI? 💡You can use the renderingMode(.original) to show the symbol's full colors or customize with .tint() and .foregroundStyle() modifiers. 👉Free #SwiftUI picture book at bigmtn.studio
2
3
10
1,812
❓How do I implement pull-to-refresh functionality in SwiftUI? 💡Use the .refreshable modifier on a List view. When users pull down, you can run code to update your data - like adding a new item to your array. 👉Free #SwiftUI picture book at bigmtn.studio
1
10
944
Mountains of Northern Patagonia from Bariloche, Argentina. 🇦🇷
4
487
Mark Moeykens retweeted
My wife & I launched an app! 🎉 It’s a family-friendly, fun block-clearing game, called Bright Blocks. It’s loads of fun on iPad & iPhone alike. And it’s an ideal car/airplane game too, with no internet required. Get it free on the App Store! 😃 apps.apple.com/us/app/id6764…

1
4
10
1,303
❓Can I use optional variables in my Prompt builder? 💡Yes! Use optional variables directly in your Prompt builder with no need to unwrap or check for nil. The buildOptional function handles optional values automatically. 👉Free #SwiftUI picture book at bigmtn.studio
7
883
❓How do I get structured data from an AI model in SwiftUI? 💡Use the @Generable macro on your response struct, pass it to the model's generating parameter, then access response.content property to display the structured data in your UI. 👉Free #SwiftUI picture book at bigmtn.studio
1
527
❓How do I optimize my language model for a fixed prompt? 💡You can prewarm your model with that specific prompt using the prewarm() function, which improves performance when you know the prompt in advance. 👉Free #SwiftUI picture book at bigmtn.studio
1
8
1,177
❓How can I align views in a Grid layout in SwiftUI? 💡Yes, you can use the .alignment modifier on the Grid to control the overall alignment, and the .gridCellAnchor modifier to override the alignment for specific cells. 👉Free #SwiftUI picture book at bigmtn.studio
1
3
24
1,931
📝Just a note on this. The Grid is something the AI doesn’t seem to reach for as a layout solution. It’ll try HStacks in VStacks, usually. ✨So an instruction in your steering/skill docs might be helpful, something like: Even Column Spacing: When columns need equal spacing across rows, prefer Grid views over HStack with manual Spacers or fixed frames: •Non-repeating rows (static, varied content): Use Grid with GridRow for precise column alignment. •Repeating rows (dynamic lists, data-driven content): Use LazyVGrid/LazyHGrid with GridItem(.flexible()).
1
248
❓What's one way to format numbers as currency in SwiftUI? 💡Use the Text view with format parameter - Text(value, format: .currency(code: "GBP")) displays values like £12.34. 👉Free #SwiftUI picture book at bigmtn.studio
4
523
❓How do I enable text selection in SwiftUI? 💡Use the .textSelection(.enabled) modifier on your Text views to allow users to long-press and copy text from your app. 👉Free #SwiftUI picture book at bigmtn.studio
1
1
15
974