UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

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 RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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.