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

Flashzilla

Forums > 100 Days of SwiftUI

I have been following along with the 100 days of swiftui. i have just completed the Flashzilla app. i have discovered an issue that i am unsure how to fix. when i run it on my iphone 6splus, the buttons do not appear. when i run it on an iPhone SE, i can see parts of the buttons at the very edge of the screen.

if i run the app in the simulator for an iphone 11 it works fine. if i run the app in the simulator for an iPhone SE (2nd edition), the buttons are not visible.

any ideas on how to fix the app so that it works on all devices?

2      

i see someone else had this issue. they solved it with this code

ZStack { Image(decorative: "background") .resizable() .scaledToFill() .edgesIgnoringSafeArea(.all) .frame(maxWidth: UIScreen.main.bounds.width, maxHeight:

2      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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.