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
Shin Yamamoto
d395cde316
Fix a backdrop's cut off on orientation change
2018-12-04 22:25:22 +09:00
Shin Yamamoto
20272eccb8
Add FloatingPanelTransitioning to present as Modality
2018-12-04 22:25:22 +09:00
Shin Yamamoto
6e87690649
FloatingPanelController as a Modality
...
* Change a floating panel view hierarchy
* Add FloatingPanelController.{show,hide}(animated:completion)
2018-12-04 22:24:26 +09:00
Shin Yamamoto
a1e4643a25
Swizzling UIViewController.dismiss(animated:completion) for a content VC
2018-12-04 22:21:50 +09:00
Shin Yamamoto
d469caad69
Fix unexpected assertion failure
2018-12-04 08:19:41 +09:00
Derek Schade
5cc3d4fbfb
Enabled inset checks again
2018-12-04 08:14:46 +09:00
Derek Schade
a8691ee3a5
Update layout when layout is intrinsiclayout
2018-12-04 08:14:46 +09:00
Derek Schade
0bc7a0953e
Intrinsic layout protocol
2018-12-04 08:14:46 +09:00
Shin Yamamoto
af45d39841
Fix panning at grabber Area
2018-12-01 12:36:47 +09:00
Shin Yamamoto
66f5b0b210
Fix an invalid content offset on height change
2018-12-01 11:08:33 +09:00
Evgeniy Branitsky
4f5abfefec
Removing backdrop view
2018-11-24 11:21:56 +03:00
Shin Yamamoto
17ba704472
Make the animated interaction interruptible
2018-11-22 14:26:18 +09:00
Shin Yamamoto
c0647017b5
Add FloatingPanelControllerDelegate.floatingPanelDidChangePosition(_:)
2018-11-21 09:10:50 +09:00
Shin Yamamoto
3686bb4b44
Clean up code for scrollGestureRecognizers
2018-11-20 11:08:23 +09:00
Shin Yamamoto
281504c9c6
Fix the gesture handling
...
* Fix a detection of a long press gesture in content VC
* Fix a SwipeActionPanGesture is not working in the tracking scroll
* Update DebugTableViewController to test it
2018-11-17 09:09:07 +09:00
Ortwin Gentz
a4a08662be
Fixed infinite recursion in FloatingPanel.responds(to:)
...
if track(scrollView:) is called twice
2018-11-15 22:11:40 +01:00
Shin Yamamoto
e8a0ffeca5
Merge pull request #48 from SCENEE/fix-scrolling-short-contents
...
Fix scrolling short contents
2018-11-16 00:19:41 +09:00
Shin Yamamoto
1399cc6fbd
Fix a layout bug on orientation changed
2018-11-15 10:33:46 +09:00
Shin Yamamoto
8b44ad4b08
Fix unexpected bounciness on short contents
...
This issue happens in dragging from half to full position.
2018-11-15 10:33:46 +09:00
Ortwin Gentz
5e7529d1e6
Improved shadow, not darkening content background
...
By removing shadowPath and putting the shadow directly onto the surface view layer instead of a sublayer, the shadow doesn't affect the content view background
2018-11-14 15:33:38 +01:00
Shin Yamamoto
e75108113a
Fix comment
2018-11-14 20:16:49 +09:00
Shin Yamamoto
6d51b0d420
Fix failure requirements for scroll view's gesture recognizers
2018-11-14 11:50:41 +09:00
Shin Yamamoto
d57d8e9da5
Fix scrolling contents shorter than scroll view size
2018-11-14 11:38:23 +09:00
Shin Yamamoto
d24e1c5355
Prevent unexpected assertion failure
...
The assertion always fails on orientation change from landspace to
portrait with the default layouts.
2018-11-14 11:18:54 +09:00
Shin Yamamoto
7b4ed52eb1
Add comments and fix typos
2018-11-12 13:35:36 +09:00
Shin Yamamoto
cab8c15474
Fix scroll view indicators hidden at the top once
2018-11-12 13:35:36 +09:00
Shin Yamamoto
273adc8d1b
Fix FloatingPanel's initial state value
2018-11-12 13:03:54 +09:00
Shin Yamamoto
e1c9fe120b
Add FloatingPanelController.updateLayout()
2018-11-12 13:03:54 +09:00
Shin Yamamoto
630580beb6
Merge pull request #38 from SCENEE/fix-scroll-view-bounce
...
Fix scroll top bounce bugs
2018-11-09 10:20:35 +09:00
Shin Yamamoto
68a2c43580
Merge pull request #37 from SCENEE/fix-orientation-change-on-removal
...
Fix orientation change on removal
2018-11-09 10:20:20 +09:00
Shin Yamamoto
817fce6d10
Fix scroll top bounce bugs
...
Disable scroll top bouncing if a user scroll down contents(no
deceleration) and the scroll offset Y is less than 10.0, instead
of the velocity condition(greater than 2500.0).
This change prevents potential bugs on scroll bouncing so that the
scroll view tracking is more robust.
2018-11-08 11:32:54 +09:00
Shin Yamamoto
6e85afaee6
Update checkLayoutConsistance
2018-11-08 09:52:04 +09:00