NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

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>

   

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

   

Hacking with Swift is sponsored by Instabug

SPONSORED Catch bugs as soon as they happen and know exactly why a crash occurred. Instabug's SDK grabs all the logs they need to fix bugs, crashes and performance issues in minutes instead of days. Get screenshots, device details, network logs, repro steps, and tons of other critical insights needed to resolve issues and prioritize product backlogs straight from your dashboard. It only takes a minute to integrate!

Get started now

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

Reply to this topic…

You need to create an account or log in to reply.

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.