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

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! :)

3      

I have this problem too!

5      

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

3      

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

3      

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.

3      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

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.