Advertisement · 728 × 90

Posts by Mark Moeykens

Post image

❓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

1 day ago 0 0 0 0
Post image

❓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

1 day ago 1 0 0 0
Post image

❓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

1 day ago 0 0 0 0

Well, I start the reader with the simplest responses, like just a String, and then move them gradually to more complex responses using Generables.

2 days ago 0 0 0 0
Post image

❓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

5 days ago 2 0 0 0
Post image

❓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

6 days ago 3 1 0 0
Post image

❓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

6 days ago 1 0 0 0
Post image

❓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

6 days ago 3 0 1 0
Post image

❓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

1 week ago 7 1 0 0
Advertisement
Post image

❓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

1 week ago 4 0 1 0
Post image

❓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

1 week ago 2 0 0 0
Post image

❓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

2 weeks ago 5 0 1 0
Post image

❓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

2 weeks ago 3 1 0 0
Post image

❓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

2 weeks ago 0 0 0 0
Post image

❓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

2 weeks ago 0 0 0 0
Post image

❓How do I make a symbol scale with dynamic text in SwiftUI?
đź’ˇUse @ScaledMetric property wrapper to adjust symbol size relative to the user's text size preference. Set a base size (like 32) and it will scale automatically.
👉Free #SwiftUI picture book at bigmtn.studio

2 weeks ago 1 1 0 0
Post image

❓How do I apply different weights to symbols in SwiftUI?
đź’ˇJust like fonts, symbols have weight too. Change symbol weight using .font(.largeTitle.weight(.ultraLight)) up to .black, or set custom sizes with .font(.system(size: 60, weight: .bold))
👉Free #SwiftUI picture book at bigmtn.studio

2 weeks ago 1 1 0 0
Advertisement
Post image

❓How do I make text size adapt to dynamic type settings in SwiftUI?
đź’ˇUse the @ScaledMetric property wrapper. It adjusts font sizes automatically in relation to the user's dynamic type settings, making your app more accessible.
👉Free #SwiftUI picture book at bigmtn.studio

3 weeks ago 2 0 0 0
Post image

❓How do I keep AI from using older if optional binding in #Swift?
đź’ˇ- **Prefer** shorthand optional binding: `if let translationSession {` over renaming during unwrap like `if let session = translationSession {`. Keep the original variable name.
👉Add this to your AI guidance docs.

3 weeks ago 4 0 0 0
Post image

❓Can I use Limited Availability Checks in the Prompt builder?
đź’ˇYes! Just like if/else conditions, you can use limited availability checks right in your Prompt builder. The buildLimitedAvailability function knows how to handle them automatically.
👉Free #SwiftUI picture book at bigmtn.studio

3 weeks ago 1 0 0 0
Post image

❓How do I set spacing between columns in LazyVGrid?
đź’ˇUse the spacing parameter in GridItem to control the horizontal gap between columns. You can set specific values (40, 2, 20) or leave it empty for SwiftUI to use a reasonable default value.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 0 0 0 0
Post image

❓How do I implement a ColorPicker in SwiftUI?
đź’ˇCreate a ColorPicker view with a title and bind it to a @State variable to store the selected color. When a user picks a color, the bound variable updates automatically.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 0 0 0 0
Post image

❓How does ViewThatFits work in SwiftUI?
đź’ˇViewThatFits selects the first child view that fits the available space. In portrait mode, it picks narrower views (350pt), while in landscape, wider views (700pt) can be used.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 1 0 0 0
Post image

❓How do I display custom images in SwiftUI with formatted text?
đź’ˇUse ContentUnavailableView with systemImage parameter to combine SF Symbols with text that fills the screen - formatting, size and colors are handled automatically.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 0 0 0 0
Post image

❓How do I create a grid with customized rows in SwiftUI?
đź’ˇUse LazyHGrid with GridItems to define rows - each GridItem represents one row. Items populate column by column, filling the first column before moving to the next.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 0 0 0 0
Post image

❓How do I use NavigationLink in SwiftUI?
đź’ˇNavigationLink lets you navigate to a new view inside a NavigationStack. You can use just text or customize with a label parameter to trigger navigation to any destination view.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 0 0 0 0
Advertisement
Post image

❓How do I set a navigation title in SwiftUI's NavigationStack?
đź’ˇUse .navigationTitle() INSIDE the NavigationStack, not on the stack itself. The navigation title modifier needs to be applied to a view within the stack.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 3 0 0 0
Post image

❓How do I create a repeating card layout in SwiftUI?
đź’ˇUse GroupBox with ForEach to easily create separated card views with consistent spacing and styling. Perfect for lists of user profiles or items.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 2 0 0 0
Post image

❓How do I control spacing between columns in LazyHGrid?
đź’ˇUse the "spacing" parameter in the LazyHGrid initializer to define the distance between grid items - set to 0 for tight layouts or increase (like 20) for more breathing room.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 1 0 0 0
Post image

❓How do I create grid items with fixed heights in LazyHGrid?
đź’ˇUse GridItem with the fixed size option: GridItem(.fixed(50)) or access it through GridItem.Size.fixed(50) to specify exact heights for each row.
👉Free #SwiftUI picture book at bigmtn.studio

2 months ago 1 0 0 0