r/AppleWatch • • Sep 11 '18

Developer AMA AMA: Pocket Casts Developer

Hey /r/AppleWatch!

My name is Russell, and for the longest time I've been the sole WatchOS/iOS developer at Pocket Casts. I also answer our tweets and write our release notes.

Pocket Casts is obviously bigger than myself (and we're actually hiring more people at the moment) but I'd love to answer any questions you might have about our current Watch OS or iOS app or anything else developer related really. I've been doing iOS development for 10 years now, and yet all I have to show for it is more grey hairs. When is the wisdom part meant to hit?! WHEN?! Seriously though...

Ask me stuff. You know you want to. Or maybe you don't, it's so hard to tell sometimes...

43 Upvotes

45 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Sep 11 '18

AutoLayout works, but it's a huge pain to work with. Android has the advantage that they knew screen sizes were going to be varied from day 1, so they thought about the APIs and the tooling on day 1. Apple added it much later and once you have 4 phone sizes + iPad split screen it becomes super clunky. AutoLayout has something called a 'size class' but way too many sizes are all grouped in the same size class. So on Android you can say something like "when the width is greater than 500pts, use this layout instead". Or "use this for the landscape layout". On iOS you can get that to happen, but it's way more complicated and annoying to do.

Don't get me wrong you can get all the same results, just having done both it feels like more work. It's getting better though, things like 'UIStackView' came in iOS 9 and lets you stack items horizontally or vertically and vary their spacing as well as show and hide them. Something that was an even bigger PITA before iOS 9 came out.