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

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 ?

2      

Hi

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

2      

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

2      

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!

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.

2      

SwiftUI rarely used here.

so i decide to learn UIKit.

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

2      

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

2      

sure i will do that

2      

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

2      

Hi

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

2      

@AbdallahYasser Which of those two screenshots is yours?

2      

@robmiller122

this is the project link

https://github.com/AbdallahYasser/project2

2      

@roosterboy

the one on the right

2      

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.

2      

@roosterboy

I could remove button white space by change button attributes

type : system -> custom

style : plain -> default

2      

Thank you all for helping me

2      

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.