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

Project 1 bug

Forums > 100 Days of Swift

I found one bug - when we select a picture for viewing, a window with a picture is opened, previously we configured the "back" button and set it to "<Storm viewer", BUT if we switch to landscape mode and back, the button name becomes "back". How to fix it?

3      

I assume you are talking about the Navigation Bar when the button to return to list. This is expected behaviour (not a bug) if the navigation has enough space to put the full title name of the previous view Okay (eg < Storm Viewer) then it put that else if not then it put < back. So in Landscape has enough space so puts title in portrait it does not so put back.

3      

Yes you are right, I mean the Navigation Bar button. But after all, the first time we open a picture from the list in portrait mode, there is enough space for the "Storm Viewer" title, then we switch to landscape and again there is enough space for the "Storm Viewer" title, but after that we go back again to portrait mode and there is not enough space for title "Storm Viewer" anymore) how it possible? cant understand

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.