Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
105 views

I'm looking to show a "grid" of numbers to my user. At the press of a button, I would like to toggle the presence non-prime numbers and rebalance the grid. This process should be animated. ...
1 vote
1 answer
68 views

This is how I define my grid: LazyVGrid(columns: [GridItem(.adaptive(minimum: width), spacing: 10)], spacing: 10) { ForEach(story.sorted, id: \.self) { book in BookElementView(book: book, ...
0 votes
1 answer
57 views

Quick test case. Layout is broken if GeometryReader is applied. struct TestGridView: View { var body: some View { ScrollView { LazyVGrid(columns: [GridItem(.adaptive(minimum: ...
0 votes
0 answers
84 views

I have a lazy LazyVGrid and on some of the displayed pictures when try to select it - another picture get selected (not the one I clicked). But not on all pictures, just on some the pictures (some are ...
-1 votes
0 answers
37 views

I want to make a SwiftUI View that effectively just displays text, but instead of normal text, I want each word to be a button so that I can click on it and have certain things happen. I am trying to ...
0 votes
0 answers
59 views

I have a grid setup where I'm displaying multiple images which is working fine. Images are ordered by the date they're added, newest to oldest. I'm trying to set it up so that the user can change the ...
-1 votes
1 answer
76 views

I have the following code snippet: LazyVerticalGrid( modifier = modifier .fillMaxSize(), contentPadding = PaddingValues(horizontal = 16.dp), columns ...
0 votes
1 answer
188 views

I have a List<List<Thing>> and show each list in separate items in my lazyVerticalGrid as they have different layouts. The list can be filtered to less items and should be removed from the ...
2 votes
0 answers
236 views

import SwiftUI import Kingfisher struct WorksDateView: View { let columns: [GridItem] = [ GridItem(.flexible(), spacing: 8), GridItem(.flexible(), spacing: 8), ...
2 votes
0 answers
87 views

I am building a SwiftUI tvOS app with a LazyVGrid using .adaptive(minimum: 300) columns. The focus behavior works fine for most items, but when an item (like item-9) does not have another item ...
1 vote
0 answers
52 views

I'm using LazyVGrid embed in a ScrollView in SwiftUI, when I open the caption panel in VoiceOver, the bottom item can't be fully shown.enter image description here It will be shown just right if I ...
0 votes
1 answer
84 views

I have a selectable tag view in SwiftUI that looks like the image on the left. Meaning the items are aligned to the center and don't look like typical SwiftUI grid (image on the right) It is a custom ...
0 votes
1 answer
58 views

I am learning SwiftUI and trying to impl a photo gallery app, using LazyVGrid. In the ForEach loop of my ContentView's body() method, I have a thumbnail view for each photo fetched from the library. ...
Robin's user avatar
  • 10.4k
0 votes
0 answers
14 views

I want to create this UI: And this is my feature composable function to do so: @Composable fun FeatureItem( Feature: feature ){ BoxWithConstraints( modifier = Modifier ....
-1 votes
1 answer
133 views

Within a Scrollview, i am trying to have a pinned SectionHeader with a simple segmented PickerView, that can switch to two different item Stacks. One very long and one very short. This works fine, as ...

15 30 50 per page
1
2 3 4 5
...
12

AltStyle によって変換されたページ (->オリジナル) /