81: Just Do It In Code

Published: Aug. 19, 2015, 3 p.m.

Tweet Shoutouts\n\n\n"@mtjc_podcast is just a bunch of Canadians being happy and friendly and taking about IOS" LOL @iOhYesPodcast— Jack Wu (@JackTripleU) August 12, 2015\n\n\n\n\n\n@JackTripleU @iOhYesPodcast we're actually 50/50 US/CDN. The yanks were absent on Canada Day, eh?— MTJC Podcast (@mtjc_podcast) August 12, 2015\n\n\n\n\n\n@JackTripleU @iOhYesPodcast Oh and thanks for the mention. A case of maple syrup is on the way. BTW how do you say OS X? Asking for a friend— MTJC Podcast (@mtjc_podcast) August 12, 2015\n\n\n\n\n\n@iOhYesPodcast inspiring story about how accessibility enabled someone to grocery shops themselves for the first time— Andy Obusek (@obusek) August 13, 2015\n\n\n\n\n\n\n\nDiscussion - UIStackView\n\n\n\n\n\nReferred to by Apple as \u201cyour first stop for interfaces built with Auto Layout\u201d in the description of WWDC15 Session 218\nManages the constraints of a vertical or horizontal linear layout\nEasy migration of IB-based layouts using the new \u201cEmbed in Stack View\u201d button\nSubviews that are to be managed by the stack view are added to the arrangedSubviews property. This allows decorative views to be added directly to subviews without affecting the arrangement.\n\n\nPotential pitfall: Removing a view from the arrangedSubviews array does not remove it as a subview. The stack view no longer manages the view\u2019s size and position, but the view is still part of the view hierarchy, and will be rendered on screen if it is visible.\n\nMultiple distribution styles\n\n\nUIStackViewDistributionFill - A layout where the stack view resizes its arranged views so that they fill the available space along the stack view\u2019s axis. When the arranged views do not fit within the stack view, it shrinks the views according to their compression resistance priority. If the arranged views do not fill the stack view, it stretches the views according to their hugging priority.\nUIStackViewDistributionFillEqually - A layout where the stack view resizes its arranged views so that they fill the available space along the stack view\u2019s axis. The views are resized so that they are all the same size along the stack view\u2019s axis.\nUIStackViewDistributionFillProportionally - A layout where the stack view resizes its arranged views so that they fill the available space along the stack view\u2019s axis. Views are resized proportionally based on their intrinsic content size along the stack view\u2019s axis.\nUIStackViewDistributionEqualSpacing - A layout where the stack view positions its arranged views so that they fill the available space along the stack view\u2019s axis. When the arranged views do not fill the stack view, it pads the spacing between the views evenly. If the arranged views do not fit within the stack view, it shrinks the views according to their compression resistance priority.\nUIStackViewDistributionEqualCentering - A layout that attempts to position the arranged views so that they have an equal center-to-center spacing along the stack view\u2019s axis, while maintaining the spacing property\u2019s distance between views. If the arranged views do not fit within the stack view, it shrinks the spacing until it reaches the minimum spacing defined by its spacing property. If the views still do not fit, the stack view shrinks the arranged views according to their compression resistance priority.\n\n\n\n\n\n\nPicks\n\n\n\n\nChad\n\n\n\n\n\nThoughts on Swift 2 Errors\n\n\n\n\n\nDarryl\n\n\n\n\n\nWWDC15 Session 218\nWWDC15 Session 219\nThe Genius of Protocols - Wooji Juice\n\n\n\n\n\nAlternative show title suggestions\n\n\n\n\n\nYour first stop\nNot your final destination\nBeefing it up\nMicrophone Hungry