Sign in

Mark Moeykens

@bigmountainstudio.bsky.social
143 followers 40 following 237 posts

📕Free SwiftUI Picture Book: bigmtn.studio

PostsRepliesMedia
Mark Moeykens @bigmountainstudio.bsky.social · 26/08/2026
❓How do I check language availability in SwiftUI? 💡Use SystemLanguageModel.default.supportsLocale() to check if a language is supported. Display the result to users since not all languages may be available. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 19/08/2026
❓How do I get session history in SwiftUI? 💡The session object automatically stores a transcript of all conversation entries. You don't need to manually store responses—they're added to the transcript as soon as processing is complete. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 19/08/2026
❓How do I stream responses from an AI model in SwiftUI? 💡Use a LanguageModelSession with a for try await loop to process the response in chunks, keeping your app responsive as data arrives continuously. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 12/08/2026
❓How do I combine values from the UI into a prompt for LanguageModelSession (AI model)? 💡You can use the PromptBuilder to combine multiple parts into one, making it great for including UI values like selections and responses. 👉Free #SwiftUI picture book at bigmtn.studio
141
Mark Moeykens @bigmountainstudio.bsky.social · 29/07/2026
❓How do I use a PromptRepresentable in SwiftUI? 💡Create reusable prompt templates. The Prompt builder's buildExpression function automatically extracts the prompt from your custom Prompt objects—no need to reference it directly! 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 22/07/2026
❓How do I guide the model when generating values for my SwiftUI properties? 💡Use @Guide with constraints like .anyOf(), .range(), .count(), and .element() to help the model generate acceptable values for your properties. 👉Free #SwiftUI picture book at bigmtn.studio
021
Mark Moeykens @bigmountainstudio.bsky.social · 22/07/2026
❓How do I use an Array in the Instructions builder? 💡You can add arrays directly into the builder and it will be handled for you. No need to iterate over the values—the buildArray() function takes care of everything! Super useful. 👉Free #SwiftUI picture book at bigmtn.studio
031
Mark Moeykens @bigmountainstudio.bsky.social · 15/07/2026
❓How do I prewarm a language model in SwiftUI? 💡Call the prewarm function from your session's onAppear modifier to load resources into memory before the user engages with the model. Time it when your app loads, a view loads, or a text field gets focus. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 15/07/2026
❓How do I create a tool for AI models in SwiftUI? 💡You need to conform to the Tool protocol and define a name, description, arguments struct with @Guide macro, and a call function that executes when the model uses your tool. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 15/07/2026
❓What's the easiest way to send prompts to the LanguageModelSession (AI model) in SwiftUI? 💡You can pass a string directly into the respond(to:) or streamResponse(to:) functions—no need to create a Prompt object. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 01/07/2026
❓Why does my model return different data than my tool? 💡The model processes tool output and forms its own response with that data. The model's output is a String, not the raw tool data structure. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 01/07/2026
❓How can I tell AI Transcript Entry objects apart? 💡The LanguageModelSession (AI model) keeps a transcript of prompts and responses. You can loop though it and do a switch on the entry type. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 01/07/2026
❓Can I use Limited Availability Checks in the Instructions? 💡Yes! You can use limited availability checks right in your Instructions builder. The Prompt builder has a special buildLimitedAvailability function that knows how to handle availability checks. 👉Free #SwiftUI picture book: bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 01/07/2026
❓How do I check if Apple Intelligence is available? 💡Use SystemLanguageModel.default.isAvailable to check availability. If it returns false, display a ContentUnavailableView to let users know Apple Intelligence isn't available on their device. 👉Free #SwiftUI picture book at bigmtn.studio
020
Mark Moeykens @bigmountainstudio.bsky.social · 01/07/2026
❓How can I control the length of AI responses in SwiftUI? 💡Use the maximumResponseTokens parameter in GenerationOptions to limit response length. This lets you show users a preview before generating longer content. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 01/07/2026
❓How do I show when a session is processing in SwiftUI? 💡Use the session's isResponding boolean property to track when a prompt is being processed, then disable your button and show a loading indicator while it's true. 👉Free #SwiftUI picture book at bigmountainstudio.com
000
Mark Moeykens @bigmountainstudio.bsky.social · 17/06/2026
❓When should you prewarm the prompt prefix in SwiftUI? 💡Prewarm it right when the view appears using .onAppear, or when picker values change since they're used in the prompt prefix. This prepares your AI prompt ahead of time. 👉Free #SwiftUI picture book at bigmtn.studio
011
Mark Moeykens @bigmountainstudio.bsky.social · 17/06/2026
❓How do I set instructions for a language model session in SwiftUI? 💡Pass instructions into the LanguageModelSession using the instructions parameter with a string describing the AI's behavior and role. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 08/06/2026
❓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
000
Mark Moeykens @bigmountainstudio.bsky.social · 11/05/2026
❓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
010
Mark Moeykens @bigmountainstudio.bsky.social · 07/05/2026
❓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
021
Mark Moeykens @bigmountainstudio.bsky.social · 07/05/2026
❓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
021
Mark Moeykens @bigmountainstudio.bsky.social · 06/05/2026
❓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
000
Mark Moeykens @bigmountainstudio.bsky.social · 04/05/2026
❓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
010
Mark Moeykens @bigmountainstudio.bsky.social · 04/05/2026
❓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
011
Mark Moeykens @bigmountainstudio.bsky.social · 04/05/2026
❓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
010
Mark Moeykens @bigmountainstudio.bsky.social · 29/04/2026
❓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
021
Mark Moeykens @bigmountainstudio.bsky.social · 29/04/2026
❓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
020
Mark Moeykens @bigmountainstudio.bsky.social · 29/04/2026
❓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
011
Mark Moeykens @bigmountainstudio.bsky.social · 27/04/2026
❓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
011
Mark Moeykens @bigmountainstudio.bsky.social · 27/04/2026
❓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
010
Mark Moeykens @bigmountainstudio.bsky.social · 23/04/2026
❓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
021
Mark Moeykens @bigmountainstudio.bsky.social · 23/04/2026
❓How do I resize SF Symbols in SwiftUI? 💡You can scale images using the imageScale modifier (.large, .medium, .small), font text styles (.largeTitle, .title, etc), or system font sizes with specific points. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 22/04/2026
❓How do I use an array in a prompt with SwiftUI? 💡The PromptBuilder has a built-in buildArray() function that automatically handles arrays, so you can pass them directly to your prompt without needing to iterate through them manually. 👉Free #SwiftUI picture book at bigmtn.studio
031
Mark Moeykens @bigmountainstudio.bsky.social · 22/04/2026
❓When should I use single-turn (one-shot) interactions with SwiftUI AI (LanguageModelSession)? 💡Create a new LanguageModelSession each time when it doesn't require state management of past interactions. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 20/04/2026
❓How do I use symbols in SwiftUI? 💡You can use the Image view with systemName parameter to load SF Symbols like "cloud.sun.fill" and customize with foregroundStyle modifier. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 20/04/2026
❓How can I format person names differently in SwiftUI? 💡Use the .name(style:) formatter with options like .abbreviated, .short, .medium, and .long to display names in various formats from initials to full formal names. 👉Free #SwiftUI picture book at bigmtn.studio
020
Mark Moeykens @bigmountainstudio.bsky.social · 20/04/2026
❓How do I wrap images with text in SwiftUI? 💡You can concatenate images and text using Text() + Text(Image("systemName")) to create inline icons with your text content. 👉Free #SwiftUI picture book at bigmtn.studio
010
Mark Moeykens @bigmountainstudio.bsky.social · 19/04/2026
Well, I start the reader with the simplest responses, like just a String, and then move them gradually to more complex responses using Generables.
000
Mark Moeykens @bigmountainstudio.bsky.social · 16/04/2026
❓How do I implement swipe actions in SwiftUI lists? 💡You can use .swipeActions() with parameters for edge (trailing or leading) and allowsFullSwipe to create customizable swipe gestures with buttons. 👉Free #SwiftUI picture book at bigmtn.studio
030
Mark Moeykens @bigmountainstudio.bsky.social · 15/04/2026
❓Can I use if/else statements in SwiftUI prompts? 💡Yes! The Prompt builder has internal functions like buildEither that handle if/else conditions, making it perfect for screens with toggles and conditional logic. 👉Free #SwiftUI picture book at bigmtn.studio
041
Mark Moeykens @bigmountainstudio.bsky.social · 15/04/2026
❓How do I show placeholder text while streamed properties load in SwiftUI? 💡Make properties optional and use the nil-coalescing operator (??) to display default text until the streamed response populates the values. 👉Free #SwiftUI picture book at bigmtn.studio
020
Mark Moeykens @bigmountainstudio.bsky.social · 15/04/2026
❓How do I work with structured responses from AI in SwiftUI? 💡Use the respond method with a generating parameter to get structured data, then access the content property to display your generated response in your UI. 👉Free #SwiftUI picture book at bigmtn.studio
140
Mark Moeykens @bigmountainstudio.bsky.social · 13/04/2026
❓How do I gradually mix colors in SwiftUI? 💡Use the .mix() function on colors with a percentage value. For example: Color.green.mix(with: .blue, by: 0.5) creates a 50/50 blend between green and blue. 👉Free #SwiftUI picture book at bigmtn.studio
071
Mark Moeykens @bigmountainstudio.bsky.social · 09/04/2026
❓How do I format dates to show only specific parts in SwiftUI? 💡Use the .formatted modifier with dateTime formatters like .week(), .weekOfMonth(), .weekday(), and .day(.ordinalOfDayInMonth) to display specific date components. 👉Free #SwiftUI picture book at bigmtn.studio
140
Mark Moeykens @bigmountainstudio.bsky.social · 09/04/2026
❓How do I create a simple List with data in SwiftUI? 💡Use the List view with an array of data, passing an id parameter to uniquely identify each row. The List iterates through your array and displays each item using the closure you provide. 👉Free #SwiftUI picture book at bigmtn.studio
020
Mark Moeykens @bigmountainstudio.bsky.social · 06/04/2026
❓How do I disable selection for specific list items in SwiftUI? 💡Use the .selectionDisabled() modifier on list items you don't want to be selectable, like .selectionDisabled(item == "Things to do") 👉Free #SwiftUI picture book at bigmtn.studio
140
Mark Moeykens @bigmountainstudio.bsky.social · 06/04/2026
❓How do I add spacing between rows in a SwiftUI List? 💡Use the .listRowSpacing() modifier to set the gap between list rows (not within rows). For example: .listRowSpacing(100) adds 100 points of spacing between each row. 👉Free #SwiftUI picture book at bigmtn.studio
021
Mark Moeykens @bigmountainstudio.bsky.social · 02/04/2026
❓How can I set or limit dynamic text sizes in SwiftUI? 💡Use .dynamicTypeSize() modifier with a range like (.large ... .xLarge) to control how your text scales with accessibility settings. 👉Free #SwiftUI picture book at bigmtn.studio
000
Mark Moeykens @bigmountainstudio.bsky.social · 02/04/2026
❓How do I format measurements properly in SwiftUI? 💡Use the Measurement type with format modifier to display values in different widths (.narrow, .abbreviated, .wide) and control locale awareness with usage parameter. 👉Free #SwiftUI picture book at bigmtn.studio
000