nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

UIStackView - NSScreencast #132

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 01/13/2017 19:04:10

URL: https://nsscreencast.com/episodes/186-uistackview

subdigital commented 3 years ago

originally written by Iraê on 09/16/2015 03:02:41

Have you noticed how much this is similar to CSS Flexbox? If you don't know flex box, it's the way web developers are doing layout if they don't need to support Internet Explorer 8 or older. For a brief tutorial: http://www.flexboxin5.com

Flex box is so amazing that Facebook created a way of rendering this spec in iOS and Android: https://github.com/facebook...

Not only that, but this is also a tent-poole for the creation of React Native: https://facebook.github.io/...

I didn't pay a lot of attention to WWDC talks, but for me this is huge. UIStackView is so similar to flex-box. This remembers me of Andy Matuschak comment when React Native was announced:

https://twitter.com/andy_ma...

For me this shows that Apple is acknowledging external influences to improve UIKit itself.

subdigital commented 3 years ago

originally written by Jan on 09/24/2015 11:43:36

Hi,
why do you add a "equal width" constraint to the 4 views in the nested stack view? Would setting distribution property to "Fill equally" be enough?

subdigital commented 3 years ago

originally written by subdigital on 09/24/2015 14:50:05

I was just showing that you can add your own constraints to work with stack views as well.

subdigital commented 3 years ago

originally written by Jan on 09/24/2015 15:22:36

Ah ok :)
thanks for the great screencasts.
cheers

subdigital commented 3 years ago

originally written by Almas Adilbek on 10/31/2015 18:40:47

Hi Ben,
Great tutorial, thank you.
One thing personally for me, I think you should not show you swallow while making the tutorials ;)