~/talk

Sharing Code between iOS and macOS

Talkat Pragma Conference 2017 · 2017-10-12..10-13· [ios, software-architecture]
links:none on file
slides:none on file

MindNode’s team shares model and much controller logic between iOS and macOS, using a central drag controller to unify pan/drag behavior and avoid duplicated view-controller code; they add a macOS target, hit thousands of compile errors and spend weeks until it compiles to an empty window, then incrementally fix platform issues. Use typealias shimming plus protocols/extensions to map UIView↔NSView differences, and implement drawing with Core Animation/Core Graphics so canvas, PDFs and exports stay identical; macOS ultimately brings significant revenue.

AI-written summary · about

  1. 0:00Introduction
  2. 4:02Why share code
  3. 7:59Benefits of code sharing
  4. 10:28Pragmatic approach to code
  5. 12:37Model layer sharing
  6. 13:40Controller layer sharing
  7. 16:27Avoid massive view controllers
  8. 19:18View layer challenges
  9. 21:25Using shimming technique
  10. 25:10Core graphics and animation
  11. 27:18Key takeaways summary
  12. 28:23MacOS revenue surprise
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.