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

SOLVED: Day 19 (Designing your layout)

Forums > 100 Days of Swift

I followed the tutorial but i have some difference

gray space at the top , space betwwen photo and border

Screen-Shot-2022-03-05-at-6-43-51-PM.png

is that because i use IOS 15.2 and tutorial use 12.2 ?

   

Hi

No this is not because of version and without seeing your code can only guess why.

   

I could remove button white space by change button attributes

type : system -> custom

style : plain -> default

but i could't solve gray space

the project link

https://drive.google.com/drive/folders/1urppih1he8azvfC7oGMJLqqGITKrtP89?usp=sharing

   

Hacking with Swift is sponsored by Emerge

SPONSORED Why are Swift reference types bad for app startup time, and what’s the performance cost of protocol conformances? That’s just a couple of the topics you can learn about on the Emerge blog — written by the app performance experts behind Emerge’s advanced app optimization and monitoring tools, based on their experience of working at companies like Apple, Airbnb, Snap, and Spotify.

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Abdallah. Just a question of curiosity.....

Why are you taking the UIKit path, rather than the SwiftUI path?

Perhaps it's a job requirement, or some other factor?

I am just curious.

   

SwiftUI rarely used here.

so i decide to learn UIKit.

but when i become good at UIKit ,I will learn SwiftUI.

   

Can you upload your project to github then we can "fork" it from there rather then the Google Drive?

   

sure i will do that

   

sorry to be late ,this first time for me to upload project so excuse me if i did something wrong

https://github.com/AbdallahYasser/project2.git

   

Hi

No this is not because of version and without seeing your code can only guess why.

   

@AbdallahYasser Which of those two screenshots is yours?

   

@robmiller122

this is the project link

https://github.com/AbdallahYasser/project2

   

@roosterboy

the one on the right

   

The missing navigation header is due to using iOS 15, which uses a different style than previous iOS versions. It has a transparent navigation bar until you scroll the content, at which time you will see something more like what's in the left picture. But since your storyboard doesn't contain a UIScrollView, you won't be able to scroll so you'll never see that bar.

I'm not sure about the space between the images and their borders. Will get back to you on that.

   

@roosterboy

I could remove button white space by change button attributes

type : system -> custom

style : plain -> default

   

Thank you all for helping me

   

Hacking with Swift is sponsored by Emerge

SPONSORED Why are Swift reference types bad for app startup time, and what’s the performance cost of protocol conformances? That’s just a couple of the topics you can learn about on the Emerge blog — written by the app performance experts behind Emerge’s advanced app optimization and monitoring tools, based on their experience of working at companies like Apple, Airbnb, Snap, and Spotify.

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.