Anton Glezman
21be693a9a
Fix issue with jumping floating panel while dragging
2019-02-11 12:28:13 +03:00
Shin Yamamoto
4f56b57b0e
Replace FloatingPanel.panGesture with panGestureRecognizer
2019-02-05 22:10:03 +09:00
Shin Yamamoto
6aa739231d
Expand the surface mask's height
...
`FloatingPanelSurfaceView.updateContentViewMask()` causes a content to be cut off.
2019-02-01 10:19:51 +09:00
Shin Yamamoto
7f025ae845
Remove the unnecessary code to fix the presentation modally
...
It's added at `a095ace` commit, but now not needed by the previous
commit.
2019-01-31 12:48:36 +09:00
Shin Yamamoto
1b2dae2135
Fix presentation modally when fpc is reused
2019-01-30 13:09:04 +09:00
Damiaan Twelker
49e868a505
restore original scroll view delegate when updating content viewcontroller
2019-01-26 12:41:17 +01:00
Shin Yamamoto and GitHub
2c72d07cab
Merge pull request #97 from SCENEE/support-full-screen
...
Support full screen layout
2019-01-19 16:41:32 +09:00
Shin Yamamoto
31c057f9f8
Fix typo
2019-01-19 14:53:36 +09:00
Shin Yamamoto
d3033df9da
Add FloatingPanelFullScreenLayout doc comment
2019-01-19 14:51:04 +09:00
Shin Yamamoto
85d7ca640e
Stop manipulating a scroll content inset for FloatingPanelFullScreenLayout
...
It's better that the manipulation should be operated in a user application code.
2019-01-19 14:06:23 +09:00
Shin Yamamoto and GitHub
a2a10bd0d3
Merge pull request #104 from SCENEE/fix-modal-presentation
...
Fix the modal presentation
2019-01-15 09:31:39 +09:00
Cedric Gatay
08d275690a
fix(delegateIgnored): fix for animation use case
...
Do not force update layout to allow the user to animate the change later on.
2019-01-14 11:05:50 +01:00
Cedric Gatay
1c307f751e
fix(delegateIgnored): listen on delegate change
...
Properly listens for delegate changes and trigger behavior / layout changes accordingly.
Made constructor parameter name explicit.
2019-01-14 08:49:23 +01:00
Cedric Gatay
6f06a0f7fc
fix(delegateIgnored): Allow to set delegate on init
...
Typical use case is :
```
let floatingVC = FloatingPanelController()
floatingVC.delegate = self
```
This PR allows to set the delegate straight away by using `let floatingVC = FloatingPanelController(self)`
Its true reason is that the setup code that fetches behavior / layout through delegate is called without the delegate being set is useless on `init`ing.
Another implementation could be observing the `didSet` event on delegate to do the `setUp` for `FloatingPanel`
2019-01-12 15:15:48 +01:00
Shin Yamamoto
a095ace30e
Fix the modal presentation
2019-01-11 19:04:39 +09:00
Shin Yamamoto and GitHub
a486f61f5f
Merge pull request #102 from SCENEE/fix-secound-touch-crash
...
Fix a crash on tap dismissal with a second touch
2019-01-10 09:38:06 +09:00
Shin Yamamoto
32203c48bd
Fix unsatisfiable constraints error for safe area bottom on full state
2019-01-10 09:05:17 +09:00
Shin Yamamoto
9d6024f603
Fix a crash on tap dismissal with a second touch
...
For example, a user tap the backdrop view to dismiss it while dragging
the surface view on presentation modally.
2019-01-10 08:43:46 +09:00
Shin Yamamoto and GitHub
a4dd4e48e7
Merge pull request #98 from SCENEE/support-swift4.1
...
Support Swift 4.1
2019-01-10 08:25:50 +09:00
Shin Yamamoto
fca79c9b0c
Fix the event handling on presentation modally
...
If an alpha of the controller's backdrop view is zero, the presentation controller
must not block any touch event outside of surface view.
2019-01-09 09:32:17 +09:00
Shin Yamamoto
4ad7f11e93
Support Swift 4.1
2019-01-05 21:44:05 +09:00
Shin Yamamoto
0412bdc996
Support full screen layout
2019-01-05 12:26:49 +09:00
Shin Yamamoto
aa23e404e1
Fix a content offset of a tracking scroll view
...
This bug only happens on 'Shoe Tab Bar' in Samples app on landscape
orientation.
2018-12-28 16:08:10 +09:00
Shin Yamamoto
4c0749640f
Remove an unnecessary comment
2018-12-28 15:13:59 +09:00
Shin Yamamoto
ee5661f304
Fix UI freezes on presentation modally from the second time
2018-12-28 15:13:59 +09:00
Shin Yamamoto
ddefdc4f34
Fix crash when content view is nil
2018-12-28 15:13:59 +09:00
Shin Yamamoto
f2a0af1646
Fix intrinsic height
2018-12-28 15:13:59 +09:00
Shin Yamamoto
7ded61c2bc
No longer need traitCollectionDidChange(_:)
2018-12-28 15:13:59 +09:00
Shin Yamamoto
08aabcf6dd
Fix bugs on iOS 10
2018-12-28 15:13:59 +09:00
Shin Yamamoto
e19af7e67d
Set up the height constraints with the root view's heightAnchor
...
* `vc.view.bounds.height` causes some layout problems. This change
makes a content view layout more robust.
* Enable to configure the content-hugging and compression-resistance
2018-12-28 15:13:59 +09:00
Shin Yamamoto
62aa07e28e
Refactor layout logic
...
- Update README
- Remove FloatingPanelSurfaceWrapperView
- Remove content wrapper view of FloatingPanelSurfaceView
- Remove {setUp,tearDown}Views in FloatingPanel
- Modify timing to call FloatingPanelLayoutAdapter.checkLayoutConsistance()
- Fix invalid surface height on orientation change
- Fix a layout problem on SafeArea.Top
- Fix invalid top inset of safe area on a navigation bar with search bar
- Fix content offsets of a tracking scroll view
- Fix the content offsets on orientation change(Regression)
- Fix FloatingPanelPresentationController
- Fix intrinsic height handling
- Reduce re-rendering the surface view unexpectedly
2018-12-28 15:13:59 +09:00
Shin Yamamoto
8dc75aed55
Always disable Auto Layout for Safe area bottom
2018-12-28 15:13:59 +09:00
Shin Yamamoto
d5f5e99010
Fix dismiss swizzling
2018-12-28 15:13:59 +09:00
Shin Yamamoto
18c46d191e
Fix panel is duplicated on orientation change
2018-12-28 15:13:59 +09:00
Shin Yamamoto
bc4a2def42
Add FloatingPanelControllerDelegate.floatingPanel(_:shouldRecognizeSimultaneouslyWith:)
2018-12-20 11:20:22 +09:00
Shin Yamamoto
8204a6cf27
Any gestures don't wait for the pan gesture
2018-12-18 21:43:18 +09:00
Shin Yamamoto
6e7a33b3a1
Merge branch 'next' into release-1.3.0
2018-12-15 08:55:39 +09:00
Shin Yamamoto
81441a724b
Fix a crash in checkLayoutConsistance()
...
The crash happened on orientation change from landscape to portrait in
"Show Tab Bar" scene.
2018-12-12 11:47:02 +09:00
Shin Yamamoto
82c8d8dd9a
Fix the boundary condition for top/bottom buffers
2018-12-12 09:59:19 +09:00
Shin Yamamoto
8751a9fe53
Fix the broken landscape layout
2018-12-12 09:59:19 +09:00
Shin Yamamoto
66a8ca36e4
Fix FloatingPanelIntrinsicLayout
...
- `.full` position's height must be the intrinsic height.
- Work it for a safe area bottom anchor
- Remove FloatingPanelIntrinsicLayout.contentViewController because it
isn't actually needed
2018-12-07 14:37:48 +09:00
Shin Yamamoto
fcd4ad874a
Use autoresizing masks instead of Auto Layout constraints
2018-12-06 09:11:25 +09:00
Shin Yamamoto
e2668fcdf2
Fix the condition of removal interaction
2018-12-06 09:11:25 +09:00
Shin Yamamoto
f3ac2b2cec
Add the modal dismissal on backdrop tap
2018-12-06 09:11:25 +09:00
Shin Yamamoto
8b84391e36
Fix FloatingPanelModalTransitioning
2018-12-06 09:11:25 +09:00
Shin Yamamoto
1b3ca347f5
Update comment of FloatingPanelSurfaceView.grabberHandle
2018-12-06 09:11:25 +09:00
Shin Yamamoto
2dced7bfbf
Improve FloatingPanelController implementation
2018-12-06 09:11:25 +09:00
Shin Yamamoto
cf60b09225
Fix invalid backdrop alpha
...
The bug was found when I commented out `animator.startAnimation()`.
2018-12-05 14:08:31 +09:00
Shin Yamamoto
427ec45d42
Let the default interaction animator be uninterruptible
...
Because an interruptible animator causes a wobbling at the animation start.
when a user flick a panel quickly to move to full position nearby the position.
2018-12-05 13:56:43 +09:00
Shin Yamamoto
6817990555
Add .hidden position
2018-12-04 22:25:22 +09:00