iOS Swift - SwiftUI Layout
Which of the following is the correct syntax to create a grid with three fixed-width columns using
LazyVGrid?LazyVGrid?LazyVGrid uses columns parameter to define columns; fixed width uses .fixed().rows with LazyVGrid. LazyHGrid(columns: [GridItem(.fixed(100)), GridItem(.fixed(100)), GridItem(.fixed(100))]) { ... } uses LazyHGrid. LazyVGrid(columns: [GridItem(.flexible()), GridItem(.flexible())]) { ... } defines only two flexible columns.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions