WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Project 1 (Storm Viewer) - large image title overlaid on image, not contained in navigation bar

Forums > 100 Days of Swift

Hey everyone. I'm at the point in the Storm Viewer UIKit tutorial where we first set navigationController?.navigationBar.prefersLargeTitles = true and then expect the title of images to look as follows in the DetailViewController:

Instead, for me it looks like this:

  1. Why does the top navigation bar not encompass the image name?
  2. Why does my image not fill the screen as it does in Paul's example even though I did set Content Mode to Aspect Fill in the Inspector panel of the Image View in the Detail View Controller.

Thank you in advance for any help you can provide! :)

1      

I have this problem too!

3      

For the 2nd issue, is Image View in Main.storyboard extended all the way to the safe area?

1      

I have this issue as well. It apears that the safe area is too close to the top of the view and I can not figure out how to make the image not display in the Navigation Controller

1      

I had this issue as well, i think it had to do with the size of the display. When i ran it on a larger phone simulator the problem seemed to resolve.

1      

Hacking with Swift is sponsored by Emerge

SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.

Find out more

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.