Post

Replies

Boosts

Views

Activity

Reply to SwiftUI indentation in multiline string
Hi there! Decided to post a reply, as I found a working solution. You can define custom grid items width and use it with LazyVGrid: struct MyView: View { let bulletListGridItems = [ GridItem(.fixed(10)), GridItem() ] var body: some View { LazyVGrid(columns: bulletListGridItems, alignment: .leading, content: { GridRow { VStack(alignment: .leading, content: { Text("•") Spacer() }) Text("Play the course as you find it and play the ball as it lies.") } } } This would return: Note, I'm using a Stack with Spacer() to push the bullet to the top of the grid row
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to SwiftData and SpotLight Search
I’ve submitted a Feedback report as proposed by Ziqiao. FB17371480
Replies
Boosts
Views
Activity
Apr ’25
Reply to What is Service UUID for bluetooth devices like Apple Airpods.
It's 0x180F, or 180F if you use it like so: let serviceUUIDs: [CBUUID] = [CBUUID(string: "180F")]
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to SwiftUI indentation in multiline string
Hi there! Decided to post a reply, as I found a working solution. You can define custom grid items width and use it with LazyVGrid: struct MyView: View { let bulletListGridItems = [ GridItem(.fixed(10)), GridItem() ] var body: some View { LazyVGrid(columns: bulletListGridItems, alignment: .leading, content: { GridRow { VStack(alignment: .leading, content: { Text("•") Spacer() }) Text("Play the course as you find it and play the ball as it lies.") } } } This would return: Note, I'm using a Stack with Spacer() to push the bullet to the top of the grid row
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24