~/talk

Migrate Swift 4.2 to 5.x

Talkat iOSDC Japan 2020 · 2020-09-19..09-21· [swift]
name:ShoMasegi
links:none on file
slides:none on file

Migrating from Swift 4.2 to 5.x focuses on concrete changes: use map/flatMap on Result to transform or chain fallible returns; compute collection diffs with OrderedCollectionDifference returns insert/remove arrays and change operations but prefer UIKit/UICollectionView diffable data sources for UI updates; adopt opaque return types to fix associated-type return problems and avoid extra heap/memory overhead; implement reusable state like UserDefaults or simple DI via @propertyWrapper wrappedValue getter/setter.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17Swift 5.x overview
  3. 2:20Session goals and audience
  4. 3:02Result type and map/flatMap
  5. 4:57Ordered Collection Diff
  6. 7:10Opaque Type explained
  7. 11:38Opaque Type in UI
  8. 13:25Property wrappers explained
  9. 15:12Property wrappers examples
  10. 16:25Summary and Swift 6.0 prep
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.