aslanyanhaik / youtube-iOS

youtube iOS app template written in swift 5
MIT License
2.54k stars 573 forks source link

View are only working in 4.7 inch devices. Support other screen size. #16

Open nyan-lin-tun opened 7 years ago

nyan-lin-tun commented 7 years ago
screen shot 2017-06-09 at 3 32 43 am screen shot 2017-06-09 at 3 31 56 am
tiepviet commented 7 years ago

It seems difficult to use auto layout. I'm having same trouble with my application.

aslanyanhaik commented 7 years ago

@tiepviet it's easy to work with auto layout. I just didn't have time to fix this bug. Hopefully this week I will fix. Thanks

tiepviet commented 7 years ago

Thank you!

andreaagudo3 commented 7 years ago

I do need this too

johndpope commented 7 years ago

use snapkit.

10,000 github stars can't be wrong. stars https://github.com/SnapKit/SnapKit

eg. to make a view fill the screen.

self.collectionView.snp.remakeConstraints { (make) -> Void in
                make.left.top.right.height.equalToSuperview()
 }