~/talk

Supporting Objective-C in a Swift codebase

Talkat dotSwift 2018 · on Monday, 2018-01-29· [swift]

GitHub shows roughly 100k vs 70k pull requests and Stack Overflow reports ~6.5% usage for both Swift and Objective C, so interoperability matters. Presents concrete workarounds: expose an NSNumber-backed @objc property as an Objective‑C fallback for an Int? optional, add Objective‑C unit tests to catch unbridgeable APIs, and enforce a custom linter rule that warns when protocols, enums, generics or structs are not bridgeable. Each item is actionable and verifiable in the codebase.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Why you should care
  3. 0:40ObjectiveC vs Swift
  4. 1:36ObjectiveC fallback
  5. 2:36ObjectiveC unit tests
  6. 3:07linter rule
~/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.