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

Project 10

Forums > 100 Days of Swift

On day 42, I have followed this properly but when I run my "Label" doesn't even show like his, I dont know why it isnt working. Everything is the same! I have to change the background colour to see the cells, and even at that they are small, they are 6 cells on a row where as in his it's 2 in a row, potrait mode

5      

Okay so I found the problem, on main.storyboard, go on your collection view object and go to it's size inspector. Make sure the estimated size is not automatic but none.

13      

Had the same issue! Another reason why to never use Storyboards again, really starting to hate it.

3      

thanks @K-Aje108 , just spent my dinner time trying to figure this out 😭

3      

@AE542  

Thanks for this solution! Was having the same problem. But as you said selecting the collection view in the storyboard and changing the estimate size from automatic to none solved it.

3      

Thanks for solution. Same problem here :-)

3      

Thanks for the input guys, this fixed my issue

this site is amazing !

3      

Thank you so much! :)

2      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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.