No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
OptionalityChangesTest
README.md

README.md

Optionality Changes

Some properties changed from nullable to nonnull in UIKit from iOS 9 to iOS 10. Because there are no @available guards for optionality changes, how should these be handled? Are they safe to call for apps that target iOS 9, or does that implicitly unwrap an Optional?

One such property that changed its nullability attributes is UIViewControllerContextTransitioning, which changed the return value of public func containerView() from UIView? to UIView. AnimatedTransitioning.swift and OptionalityChangeWrapper.swift explore one way to workaround these changes in a safer way.