-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull to Dismiss UIScrollView drawers. #58
Conversation
24eaec3
to
e88a041
Compare
40b22bf
to
4346e03
Compare
675c27e
to
13831b8
Compare
f9179f3
to
19a4253
Compare
fc820ea
to
5c1026b
Compare
5c1026b
to
3054304
Compare
820f0c7
to
1df08ee
Compare
8a5803b
to
2f62621
Compare
2f62621
to
798fb4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Our conversation while going to get lunch helped me to understand what you did here, so thanks for that!
@@ -54,6 +86,10 @@ extension PresentationController { | |||
} | |||
|
|||
override func presentationTransitionWillBegin() { | |||
// NOTE: `targetDrawerState.didSet` is not invoked within the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's supposed to be common knowledge (that the property observers don't get triggered inside initialisers) so I don't think we need the comment here.
/// obscure `UINavigationBar` Large Title mechanism. | ||
/// | ||
/// - note: The drawer presentation controller does not retain the view. | ||
var scrollViewForPullToDismiss: UIScrollView? { get set } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice documentation. 💯
Drawer Content VCs may enable pull to dismiss simply by setting
scrollViewForPullToDismiss
on the drawer presentation controller. Supports iOS 11 Large Title.