NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

Display Text in SwiftUI

Forums > SwiftUI

I have an array of String that contains information about books. The thing is I want to display like the image I have atteched below. How can I use ForEach to display, not using grid? Sorry I dont know how to display the image correctly in Forum.

<a data-flickr-embed="true" href="https://www.flickr.com/photos/192579971@N05/50998913175/in/dateposted-public/" title="164411953_913618239469677_6655324661087427421_n"><img src="https://live.staticflickr.com/65535/50998913175_8e9d7a07d3_b.jpg" width="994" height="1024" alt="164411953_913618239469677_6655324661087427421_n"></a>

1      

You probably need some sort of grid. Check out this tutorial. It may help: https://swiftui-lab.com/impossible-grids/

1      

Hacking with Swift is sponsored by Play

SPONSORED Play is the first native iOS design tool created for designers and engineers. You can install Play for iOS and iPad today and sign up to check out the Beta of our macOS app with SwiftUI code export. We're also hiring engineers!

Click to learn more about Play!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.