TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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>

3      

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

3      

Hacking with Swift is sponsored by Superwall.

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

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.