This was fun, but the final results don’t look right on the iPhone 11 Pro simulator when it’s in the portrait orientation. The words on the top two cards get covered up. it all looks fine in the iPhone 8 simultor, but not the ones with the notches. What is missing to make it play well on the the 11 pro?
One question I was wondering about is the proper place to install the window we create manually in a project that utilizes a SceneDelegate. When using Storyboards, iOS seed this into the SceneDelegate automagically, but I’m not sure where I’d do this using this technique.
Hi @pumasalad! Nice catch! All the constraints should use the view.safeAreaLayoutGuide, and it has been reflected in the tutorial. It works perfectly on all devices :].
Also, be sure to delete the reference to “main” for the “Storyboard Name” value in the info.plist file. It’s under “Application Scene Manifest”->“Scene Configuration”->“Application Session Role”->“Item 0”->“Storyboard” when you click on it in the project navigator.
Hope that helps you. I ran into the same thing a week or so ago on a project I was trying to build without storyboards.
Hi @stevekellogg! A very nice spot! As of iOS 13, by default all projects come with a SceneDelegate file, and those changes have been reflected in the tutorial. Be sure to check them and out and let me know if you find anything else ;].
Tell me please where did the files (CardModel.swift, CardView.swift, GalleryController.swift) come from ??
Did you make them yourself or its type of project when we create in Xcode?