Mark Moeykens's Avatar

Mark Moeykens

@bigmountainstudio

๐Ÿ“•Free SwiftUI Picture Book: bigmtn.studio

129
Followers
40
Following
182
Posts
04.04.2025
Joined
Posts Following

Latest posts by Mark Moeykens @bigmountainstudio

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

19.02.2026 15:03 ๐Ÿ‘ 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

16.02.2026 15:04 ๐Ÿ‘ 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

12.02.2026 15:05 ๐Ÿ‘ 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

12.02.2026 15:04 ๐Ÿ‘ 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

09.02.2026 15:03 ๐Ÿ‘ 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

09.02.2026 15:02 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
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

05.02.2026 15:12 ๐Ÿ‘ 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

05.02.2026 15:06 ๐Ÿ‘ 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

05.02.2026 15:05 ๐Ÿ‘ 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

05.02.2026 15:03 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How can I create buttons with multiple text elements in SwiftUI?
๐Ÿ’กYou can add multiple Text views to a Button using VStack or HStack layouts. Use .foregroundStyle() for colors and .font() for typography.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

29.01.2026 15:22 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I create rows with flexible heights in SwiftUI?
๐Ÿ’กUse LazyHGrid with GridItem's .flexible parameter. Set minimum and maximum height constraints like GridItem(.flexible(minimum: 20, maximum: 60)).
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

29.01.2026 15:11 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I align scroll views in SwiftUI?
๐Ÿ’กUse ScrollView_Behavior_ViewAligned to snap scroll targets into place within the visible area - perfect when your content only fills part of the screen.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

29.01.2026 15:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I implement a NavigationLink style Picker in SwiftUI?
๐Ÿ’กThe Picker must be within a NavigationStack if using the .navigationLink picker style, which gives it that iOS system look with chevron navigation.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

29.01.2026 15:05 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I use Spacers in SwiftUI layouts?
๐Ÿ’กSpacers can be used vertically AND horizontally. They push views apart or position them a percentage from screen edges with simple syntax like Spacer().
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

29.01.2026 15:03 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I apply colored tints to list items in SwiftUI?
๐Ÿ’กYou can use .listItemTint() modifier with colors like .pink, .orange, .red, or .monochrome to customize list item appearance, but remember it only works within a List.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

26.01.2026 15:22 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I get the coordinates of elements in SwiftUI GeometryReader?
๐Ÿ’กUse different coordinate spaces: local gives (0,0) at origin while global gives actual screen coordinates. Access with geometryProxy.frame(in: .local) vs (in: .global).
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

26.01.2026 15:11 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I create a background that extends into the safe area edges in SwiftUI?
๐Ÿ’กUse containerRelativeFrame with .horizontal and .vertical positioning to make backgrounds extend beyond safe areas, while content stays within bounds.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

26.01.2026 15:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I disable scrolling in SwiftUI's ScrollView?
๐Ÿ’กYou can use the .scrollDisabled() modifier and pass in a boolean value to control when scrolling is enabled or disabled.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

26.01.2026 15:03 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I disable opacity selection in a ColorPicker in SwiftUI?
๐Ÿ’กSet the 'supportsOpacity' parameter to false: ColorPicker("Pick a Color", selection: $color, supportsOpacity: false)
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

26.01.2026 15:03 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I use unsized axes in SwiftUI Grid?
๐Ÿ’กUse .gridCellUnsizedAxes modifier with .vertical or .horizontal parameters to tell grid cells to size themselves based on other views in the same row/column instead of determining their own size.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

22.01.2026 15:01 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I create charts with different bar heights in SwiftUI?
๐Ÿ’กUse the y parameter in BarMark to set different heights (values) for each bar in your chart, like .value("Value", 75) for the first bar and .value("Value", 25) for the second.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

15.01.2026 15:22 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

โ“How do I make a reorderable list with non-movable rows in SwiftUI?
๐Ÿ’กUse the onMove modifier on ForEach for reordering functionality, and moveDisabled() to prevent specific items from being moved.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

15.01.2026 15:12 ๐Ÿ‘ 2 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I stack views in SwiftUI's GeometryReader?
๐Ÿ’กGeometryReader layers stack views on top of each other like a ZStack, but ZStack offers better alignment options for layout.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

15.01.2026 15:06 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I animate scrolling in SwiftUI?
๐Ÿ’กWrap your scrollTo() function with withAnimation to create smooth scrolling animations between positions in your ScrollView.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

15.01.2026 15:04 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I create custom sizing logic in SwiftUI?
๐Ÿ’กUse containerRelativeFrame with a closure to return custom dimensions based on conditions like orientation. If horizontal, return length/2; if vertical, return length/1.25.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

15.01.2026 15:01 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I create a selectable list in SwiftUI?
๐Ÿ’กUse an optional String? state property to track your selection, then bind it to your List view with $selection. Style your selected items using ternary operators for different appearance.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

12.01.2026 15:11 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I add a border to buttons in SwiftUI?
๐Ÿ’กYou can either use .border() modifier for square borders or create a RoundedRectangle with .stroke() for rounded borders - both with customizable colors and widths.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

12.01.2026 15:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I bind data to List rows in SwiftUI?
๐Ÿ’กUse the dollar sign ($) prefix with your item to create two-way binding between your data and UI controls in the List.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

12.01.2026 15:05 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

โ“How do I programmatically dismiss a search field in SwiftUI?
๐Ÿ’กUse @Environment(\.dismissSearch) to access the dismissSearch function, then call it when you want to cancel searching - like when tapping "Confirm" after selecting a destination.
๐Ÿ‘‰Free #SwiftUI picture book at bigmtn.studio

12.01.2026 15:03 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0