177 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
105
views
How to make a lazy loading flowing layout which supports item animations in android compose?
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
How to display a View for selected item in LazyVGrid under a row where that grid is presented?
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
How to use GeometryReader within LazyVGrid to correctly define size of the View within ForEach?
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
Sometimes the wrong picture gets selected
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
SwiftUI LazyVGrid Variable Sized Columns [duplicate]
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
Updating sort order of items in a LazyVGrid
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
Clipping image fails in recompositions
I have the following code snippet:
LazyVerticalGrid(
modifier = modifier
.fillMaxSize(),
contentPadding = PaddingValues(horizontal = 16.dp),
columns ...
0
votes
1
answer
188
views
Animating items in a LazyVerticalGrid
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
Performance Issue with LazyVGrid and ScrollView
import SwiftUI
import Kingfisher
struct WorksDateView: View {
let columns: [GridItem] = [
GridItem(.flexible(), spacing: 8),
GridItem(.flexible(), spacing: 8),
...
2
votes
0
answers
87
views
SwiftUI tvOS LazyVGrid Focus Navigation Issue: Can't Move Down When No Direct Below Item
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
Focus element can't be fully shown in Voice Over
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
SwiftUI LazyVGrid vs. Custom View for Selectable Tags (Glitch Effect Bug)
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
LazyVGrid item hit test area is not expected
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.
...
0
votes
0
answers
14
views
How to create a dynamic background design using BoxWithConstraints
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
(SwiftUI) Segmented Picker in a pinned SectionHeader does not Update ScrollView ContentHeight as expected
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 ...