Skip to content

Commit 0b4299a

Browse files
committed
Fix issue with workaround as detailed on swift.bugs.com.
1 parent 1beba47 commit 0b4299a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Example/NotesExample-iOS/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
2626
try! setupDemoNotes()
2727
setupSplitViewController()
2828

29+
// SR-4562 / #220: Create an object so the Swift compiler knows not to remove this class from ObjC's class list.
30+
// Workaround for "Unknown class _TtC12NotesExample27NotesOverviewViewController in Interface Builder file."
31+
_ = NotesOverviewViewController()
32+
2933
return true
3034
}
3135

0 commit comments

Comments
 (0)