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

Building component-based UIs

Building component-based UIs

CocoaHeads meetup
Component-oriented View Controllers - 26 October

Christoffer Winterkvist

November 01, 2016
Tweet

Other Decks in Technology

Transcript

  1. John Sundell "Components & View Models in the Cloud -

    how Spotify builds native, dynamic UIs"
  2. var identifier: String? var index: Int var title: String var

    kind: String var header: String var span: Double var items: [Item] var meta: [String : Any] Component
  3. var identifier: String? var index: Int var title: String var

    kind: String var header: String var span: Double var items: [Item] var meta: [String : Any] Component
  4. Item var index: Int var identifier: Int? var title: String

    var subtitle: String var text: String var image: String var kind: String var action: String? var size: CGSize var children: [[String : Any]] var meta: [String : Any] var relations: [String : [Item]]
  5. var identifier: String? var index: Int var title: String var

    kind: String var header: String var span: Double var items: [Item] var meta: [String : Any] Component var index: Int var identifier: Int? var title: String var subtitle: String var text: String var image: String var kind: String var action: String? var size: CGSize var children: [[String : Any]] var meta: [String : Any] var relations: [String : [Item]] Item