Upgrade to Pro — share decks privately, control downloads, hide ads and more …

To XIB or not to XIB?

To XIB or not to XIB?

Avatar for Facundo Menzella

Facundo Menzella

February 20, 2019

Other Decks in Technology

Transcript

  1. CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankacy will be hosting a

    free workshop called “Beyond Interface Builder” on May 5th! For more details & to RSVP, visit cocoaheadsmtl.com 7 3:11 AM - Apr 19, 2018 NatashaTheRobot @NatashaTheRobot Coordinators with Storyboards via @Apokrupto @iOSGoodies #iosdev apokrupto.com/blog-1/2016/3/… 61 16:56 - 29 abr. 2016 Rui Peres @peres Fixed a bug where an IBOutlet in Interface Builder was referring to the wrong base class's module. Corollary: Don't use Xibs or Storyboards. 19 5:52 PM - Oct 8, 2018 Ben Sandofsky @sandofsky Giving iOS Storyboards a chance. Keep me in your thoughts and prayers. 6 21:17 - 23 jul. 2014 Nick Lockwood @nicklockwood I've been using AutoLayout lately, and I no longer hate it. That said, Interface Builder seems like a very poorly-suited tool for it. 19 9:26 AM - Jul 18, 2016 Linda Dong @lindadong I like how @soffes and @kylebshr’s just made a better version of Interface Builder in 3 days for hackathon 31 11:52 PM - Jul 27, 2018 [renaud _lienhart]; @layoutSubviews So Interface Builder seems to apply user-defined runtime attributes of a view before unpacking its subviews, whereas UIKit does the opposite 7 10:53 PM - Dec 17, 2018 [renaud _lienhart]; @layoutSubviews Me: Hey Interface Builder I just wanna quickly check the design of that scr- IB: OH HAI LET ME ADJUST THE DIMENSION OF THAT RANDOM VIEW FROM 7.9999999999999982 to 8.0000000000000007 FOR NO REASON 52 6:58 AM - Aug 15, 2018 Paul Haddad @tapbot_paul Watch stuff would be significantly less un-pleasant if Interface Builder wasn’t a requirement. 11 4:29 PM - Oct 31, 2018 · Flower Mound, TX Paul Hudson @twostraws In 1988 – 30 years ago! – NeXTSTEP shipped with Interface Builder for the first time. It’s obviously come on a long way since then, but damn was it way ahead of its time. 35 12:36 AM - Jan 13, 2018 Tijmen @troberti One of the best decisions we made was getting rid of Storyboards all- together. UI in code is much more maintainable & reusable. Strange to see Apple so strongly recommend it, afaik they don't even use it themselves. twitter.com/steipete/statu… Sam Soffes @soffes I think I'd rather write Objective-C instead of Swift than be able to write Swift and have to use Interface Builder 50 3:16 PM - Aug 3, 2017 · IAH Airport Area, Houston Sam Soffes @soffes If you have an @IBInspectable property, adopt it in a bunch of XIBs/storyboards, and then remove the property, you will crash at run time every time one of those views appears. No build errors or anything. Gotta love Interface Builder 31 9:19 PM - Oct 10, 2018 In B th CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankac workshop called “Beyond Interfa more details & to RSVP, visit co 7 3:11 AM - Apr 19, 2018 Jake Carter @JakeCarter Today I did a really hard thing and put in my notice at Omni. I’ve been here for over 7 years and it was a really hard decision to make, but I’m very excited for what’s next. Next month I’ll be joining the Interface Builder team at . 41 3:33 AM - Nov 7, 2018 Steve Troughton-Smith @stroughtonsmith Just out of interest, does anybody actually like Xcode 10's Interface Builder moving the object library from an easily- accessible sidebar to a temporary HUD? I hate it 54 7:22 PM - Jul 31, 2018 Kyle @kyleve You, a simpleton: I like Interface Builder Me, an intellectual: Actually, UI code is simpler to understand and maintain 31 4:18 AM - May 17, 2017 · SoMa, San Francisco Paul Hudson @twostraws Alright, iOS developers: it's time to settle this once and for all. Retweet this if you prefer building your user interfaces programmatically; favorite this if you prefer building them using Interface Builder. I'll write a new article for whichever option is ahead in 24 hours 1,165 2:31 PM - Jan 4, 2019 Roy Marmelstein @marmelroy 3/ XCode, nibs and storyboards don't scale. 4 9:49 - 18 mar. 2016 Roy Marmelstein @marmelroy · 18 mar. 2016 En respuesta a @marmelroy 2/ All of the big companies are behind on Swift adoption and none of them are using it in production apps. migueldiazrubio @migueldiazrubio Desarrollo iOS: Storyboards vs NIBs vs código goo.gl/DNkPH 12 9:01 - 18 jun. 2013
  2. CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankacy will be hosting a

    free workshop called “Beyond Interface Builder” on May 5th! For more details & to RSVP, visit cocoaheadsmtl.com 7 3:11 AM - Apr 19, 2018 NatashaTheRobot @NatashaTheRobot Coordinators with Storyboards via @Apokrupto @iOSGoodies #iosdev apokrupto.com/blog-1/2016/3/… 61 16:56 - 29 abr. 2016 Rui Peres @peres Fixed a bug where an IBOutlet in Interface Builder was referring to the wrong base class's module. Corollary: Don't use Xibs or Storyboards. 19 5:52 PM - Oct 8, 2018 Ben Sandofsky @sandofsky Giving iOS Storyboards a chance. Keep me in your thoughts and prayers. 6 21:17 - 23 jul. 2014 Nick Lockwood @nicklockwood I've been using AutoLayout lately, and I no longer hate it. That said, Interface Builder seems like a very poorly-suited tool for it. 19 9:26 AM - Jul 18, 2016 Linda Dong @lindadong I like how @soffes and @kylebshr’s just made a better version of Interface Builder in 3 days for hackathon 31 11:52 PM - Jul 27, 2018 [renaud _lienhart]; @layoutSubviews So Interface Builder seems to apply user-defined runtime attributes of a view before unpacking its subviews, whereas UIKit does the opposite 7 10:53 PM - Dec 17, 2018 [renaud _lienhart]; @layoutSubviews Me: Hey Interface Builder I just wanna quickly check the design of that scr- IB: OH HAI LET ME ADJUST THE DIMENSION OF THAT RANDOM VIEW FROM 7.9999999999999982 to 8.0000000000000007 FOR NO REASON 52 6:58 AM - Aug 15, 2018 Paul Haddad @tapbot_paul Watch stuff would be significantly less un-pleasant if Interface Builder wasn’t a requirement. 11 4:29 PM - Oct 31, 2018 · Flower Mound, TX Paul Hudson @twostraws In 1988 – 30 years ago! – NeXTSTEP shipped with Interface Builder for the first time. It’s obviously come on a long way since then, but damn was it way ahead of its time. 35 12:36 AM - Jan 13, 2018 Tijmen @troberti One of the best decisions we made was getting rid of Storyboards all- together. UI in code is much more maintainable & reusable. Strange to see Apple so strongly recommend it, afaik they don't even use it themselves. twitter.com/steipete/statu… Sam Soffes @soffes I think I'd rather write Objective-C instead of Swift than be able to write Swift and have to use Interface Builder 50 3:16 PM - Aug 3, 2017 · IAH Airport Area, Houston Sam Soffes @soffes If you have an @IBInspectable property, adopt it in a bunch of XIBs/storyboards, and then remove the property, you will crash at run time every time one of those views appears. No build errors or anything. Gotta love Interface Builder 31 9:19 PM - Oct 10, 2018 In B th CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankac workshop called “Beyond Interfa more details & to RSVP, visit co 7 3:11 AM - Apr 19, 2018 Jake Carter @JakeCarter Today I did a really hard thing and put in my notice at Omni. I’ve been here for over 7 years and it was a really hard decision to make, but I’m very excited for what’s next. Next month I’ll be joining the Interface Builder team at . 41 3:33 AM - Nov 7, 2018 Steve Troughton-Smith @stroughtonsmith Just out of interest, does anybody actually like Xcode 10's Interface Builder moving the object library from an easily- accessible sidebar to a temporary HUD? I hate it 54 7:22 PM - Jul 31, 2018 Kyle @kyleve You, a simpleton: I like Interface Builder Me, an intellectual: Actually, UI code is simpler to understand and maintain 31 4:18 AM - May 17, 2017 · SoMa, San Francisco Roy Marmelstein @marmelroy 3/ XCode, nibs and storyboards don't scale. 4 9:49 - 18 mar. 2016 Roy Marmelstein @marmelroy · 18 mar. 2016 En respuesta a @marmelroy 2/ All of the big companies are behind on Swift adoption and none of them are using it in production apps. migueldiazrubio @migueldiazrubio Desarrollo iOS: Storyboards vs NIBs vs código goo.gl/DNkPH 12 9:01 - 18 jun. 2013 1/16/2019 tweet.html Paul Hudson @twostraws Alright, iOS developers: it's time to settle this once and for all. Retweet this if you prefer building your user interfaces programmatically; favorite this if you prefer building them using Interface Builder. I'll write a new article for whichever option is ahead in 24 hours 1,165 2:31 PM - Jan 4, 2019 483 people are talking about this
  3. CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankacy will be hosting a

    free workshop called “Beyond Interface Builder” on May 5th! For more details & to RSVP, visit cocoaheadsmtl.com 7 3:11 AM - Apr 19, 2018 NatashaTheRobot @NatashaTheRobot Coordinators with Storyboards via @Apokrupto @iOSGoodies #iosdev apokrupto.com/blog-1/2016/3/… 61 16:56 - 29 abr. 2016 Rui Peres @peres Fixed a bug where an IBOutlet in Interface Builder was referring to the wrong base class's module. Corollary: Don't use Xibs or Storyboards. 19 5:52 PM - Oct 8, 2018 Ben Sandofsky @sandofsky Giving iOS Storyboards a chance. Keep me in your thoughts and prayers. 6 21:17 - 23 jul. 2014 Nick Lockwood @nicklockwood I've been using AutoLayout lately, and I no longer hate it. That said, Interface Builder seems like a very poorly-suited tool for it. 19 9:26 AM - Jul 18, 2016 Linda Dong @lindadong I like how @soffes and @kylebshr’s just made a better version of Interface Builder in 3 days for hackathon 31 11:52 PM - Jul 27, 2018 [renaud _lienhart]; @layoutSubviews So Interface Builder seems to apply user-defined runtime attributes of a view before unpacking its subviews, whereas UIKit does the opposite 7 10:53 PM - Dec 17, 2018 [renaud _lienhart]; @layoutSubviews Me: Hey Interface Builder I just wanna quickly check the design of that scr- IB: OH HAI LET ME ADJUST THE DIMENSION OF THAT RANDOM VIEW FROM 7.9999999999999982 to 8.0000000000000007 FOR NO REASON 52 6:58 AM - Aug 15, 2018 Paul Haddad @tapbot_paul Watch stuff would be significantly less un-pleasant if Interface Builder wasn’t a requirement. 11 4:29 PM - Oct 31, 2018 · Flower Mound, TX Paul Hudson @twostraws In 1988 – 30 years ago! – NeXTSTEP shipped with Interface Builder for the first time. It’s obviously come on a long way since then, but damn was it way ahead of its time. 35 12:36 AM - Jan 13, 2018 Tijmen @troberti One of the best decisions we made was getting rid of Storyboards all- together. UI in code is much more maintainable & reusable. Strange to see Apple so strongly recommend it, afaik they don't even use it themselves. twitter.com/steipete/statu… Sam Soffes @soffes I think I'd rather write Objective-C instead of Swift than be able to write Swift and have to use Interface Builder 50 3:16 PM - Aug 3, 2017 · IAH Airport Area, Houston Sam Soffes @soffes If you have an @IBInspectable property, adopt it in a bunch of XIBs/storyboards, and then remove the property, you will crash at run time every time one of those views appears. No build errors or anything. Gotta love Interface Builder 31 9:19 PM - Oct 10, 2018 In B th CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankac workshop called “Beyond Interfa more details & to RSVP, visit co 7 3:11 AM - Apr 19, 2018 Jake Carter @JakeCarter Today I did a really hard thing and put in my notice at Omni. I’ve been here for over 7 years and it was a really hard decision to make, but I’m very excited for what’s next. Next month I’ll be joining the Interface Builder team at . 41 3:33 AM - Nov 7, 2018 Steve Troughton-Smith @stroughtonsmith Just out of interest, does anybody actually like Xcode 10's Interface Builder moving the object library from an easily- accessible sidebar to a temporary HUD? I hate it 54 7:22 PM - Jul 31, 2018 Kyle @kyleve You, a simpleton: I like Interface Builder Me, an intellectual: Actually, UI code is simpler to understand and maintain 31 4:18 AM - May 17, 2017 · SoMa, San Francisco Roy Marmelstein @marmelroy 3/ XCode, nibs and storyboards don't scale. 4 9:49 - 18 mar. 2016 Roy Marmelstein @marmelroy · 18 mar. 2016 En respuesta a @marmelroy 2/ All of the big companies are behind on Swift adoption and none of them are using it in production apps. migueldiazrubio @migueldiazrubio Desarrollo iOS: Storyboards vs NIBs vs código goo.gl/DNkPH 12 9:01 - 18 jun. 2013 1/16/2019 tweet.html file:///Users/facumenzella/Desktop/tweet.html 1/1 Paul Hudson @twostraws Alright, iOS developers: it's time to settle this once and for all. Retweet this if you prefer building your user interfaces programmatically; favorite this if you prefer building them using Interface Builder. I'll write a new article for whichever option is ahead in 24 hours 1,165 2:31 PM - Jan 4, 2019 483 people are talking about this Sean Roberts @HyraxSyriacus I can only assume that fans of IB have never had to deal with VCS merges of xib files. 12:06 PM - Jan 6, 2019 See Sean Roberts 's other Tweets Interface Builder. I'll write a new article for whichever option is ahead in 24 hours 06/02/2019 tweet copy.html
  4. CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankacy will be hosting a

    free workshop called “Beyond Interface Builder” on May 5th! For more details & to RSVP, visit cocoaheadsmtl.com 7 3:11 AM - Apr 19, 2018 NatashaTheRobot @NatashaTheRobot Coordinators with Storyboards via @Apokrupto @iOSGoodies #iosdev apokrupto.com/blog-1/2016/3/… 61 16:56 - 29 abr. 2016 Rui Peres @peres Fixed a bug where an IBOutlet in Interface Builder was referring to the wrong base class's module. Corollary: Don't use Xibs or Storyboards. 19 5:52 PM - Oct 8, 2018 Ben Sandofsky @sandofsky Giving iOS Storyboards a chance. Keep me in your thoughts and prayers. 6 21:17 - 23 jul. 2014 Nick Lockwood @nicklockwood I've been using AutoLayout lately, and I no longer hate it. That said, Interface Builder seems like a very poorly-suited tool for it. 19 9:26 AM - Jul 18, 2016 Linda Dong @lindadong I like how @soffes and @kylebshr’s just made a better version of Interface Builder in 3 days for hackathon 31 11:52 PM - Jul 27, 2018 [renaud _lienhart]; @layoutSubviews So Interface Builder seems to apply user-defined runtime attributes of a view before unpacking its subviews, whereas UIKit does the opposite 7 10:53 PM - Dec 17, 2018 [renaud _lienhart]; @layoutSubviews Me: Hey Interface Builder I just wanna quickly check the design of that scr- IB: OH HAI LET ME ADJUST THE DIMENSION OF THAT RANDOM VIEW FROM 7.9999999999999982 to 8.0000000000000007 FOR NO REASON 52 6:58 AM - Aug 15, 2018 Paul Haddad @tapbot_paul Watch stuff would be significantly less un-pleasant if Interface Builder wasn’t a requirement. 11 4:29 PM - Oct 31, 2018 · Flower Mound, TX Paul Hudson @twostraws In 1988 – 30 years ago! – NeXTSTEP shipped with Interface Builder for the first time. It’s obviously come on a long way since then, but damn was it way ahead of its time. 35 12:36 AM - Jan 13, 2018 Tijmen @troberti One of the best decisions we made was getting rid of Storyboards all- together. UI in code is much more maintainable & reusable. Strange to see Apple so strongly recommend it, afaik they don't even use it themselves. twitter.com/steipete/statu… Sam Soffes @soffes I think I'd rather write Objective-C instead of Swift than be able to write Swift and have to use Interface Builder 50 3:16 PM - Aug 3, 2017 · IAH Airport Area, Houston Sam Soffes @soffes If you have an @IBInspectable property, adopt it in a bunch of XIBs/storyboards, and then remove the property, you will crash at run time every time one of those views appears. No build errors or anything. Gotta love Interface Builder 31 9:19 PM - Oct 10, 2018 In B th CocoaHeads Montréal @cocoaheadsmtl CocoaHeads alumnus @frankac workshop called “Beyond Interfa more details & to RSVP, visit co 7 3:11 AM - Apr 19, 2018 Jake Carter @JakeCarter Today I did a really hard thing and put in my notice at Omni. I’ve been here for over 7 years and it was a really hard decision to make, but I’m very excited for what’s next. Next month I’ll be joining the Interface Builder team at . 41 3:33 AM - Nov 7, 2018 Steve Troughton-Smith @stroughtonsmith Just out of interest, does anybody actually like Xcode 10's Interface Builder moving the object library from an easily- accessible sidebar to a temporary HUD? I hate it 54 7:22 PM - Jul 31, 2018 Kyle @kyleve You, a simpleton: I like Interface Builder Me, an intellectual: Actually, UI code is simpler to understand and maintain 31 4:18 AM - May 17, 2017 · SoMa, San Francisco Paul Hudson @twostraws Alright, iOS developers: it's time to settle this once and for all. Retweet this if you prefer building your user interfaces programmatically; favorite this if you prefer building them using Interface Builder. I'll write a new article for whichever option is ahead in 24 hours 1,165 2:31 PM - Jan 4, 2019 Roy Marmelstein @marmelroy 3/ XCode, nibs and storyboards don't scale. 4 9:49 - 18 mar. 2016 Roy Marmelstein @marmelroy · 18 mar. 2016 En respuesta a @marmelroy 2/ All of the big companies are behind on Swift adoption and none of them are using it in production apps. migueldiazrubio @migueldiazrubio Desarrollo iOS: Storyboards vs NIBs vs código goo.gl/DNkPH 12 9:01 - 18 jun. 2013
  5. 15 % 15 % 8 % 15 % 38 %

    8 % chat core products retention verticals money distribution letgo-ios
  6. • Class is not key value coding-compliant for the key

    headerView. • Unrecognised selector sent to instance • FileOwner does not implement methodSignatureForSelector: — trouble ahead • Could not load NIB in Bundle <@#$3> with name YourFancyViewController • Use of unimplemented initialiser ‘init(coder:)’ for class
  7. 2. Reliability •PROCESS •RUNTIME VS COMPILE TIME 3. Reusability 1.

    Collaboration •EFFICIENCY •READABILITY •CONFLICTS
  8. Q&A