Shin Yamamoto
8657c91002
Fix the boundary of the interactive top constraint
2019-02-23 10:28:34 +09:00
Shin Yamamoto
0c30b68a9e
Update FloatingPanelFullScreenLayout spec
...
It's useful that all insets(tip, half and full) indicates a inset
from the superview, not the safe area because a user can layout
a floating panel regardless of the safe area or layout guides(iOS10)
whose values depend on iOS system behavior.
2019-02-21 19:19:48 +09:00
Shin Yamamoto
91dfc1e086
Open the default layout/behavior
2019-02-21 19:19:48 +09:00
Shin Yamamoto
b2c59c17aa
Modify setBackdropAlpha(of:) as private
2019-02-21 19:19:48 +09:00
Shin Yamamoto
4cb79a14fc
Move the surface view with a top layout constraint
2019-02-21 19:19:48 +09:00
Shin Yamamoto
fe18e493a9
Fix dragging outside safe area
2019-02-16 10:31:17 +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
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
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
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
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
82c8d8dd9a
Fix the boundary condition for top/bottom buffers
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
2dced7bfbf
Improve FloatingPanelController implementation
2018-12-06 09:11:25 +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
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
0bc7a0953e
Intrinsic layout protocol
2018-12-04 08:14:46 +09:00
Shin Yamamoto
7b4ed52eb1
Add comments and fix typos
2018-11-12 13:35:36 +09:00
Shin Yamamoto
6e85afaee6
Update checkLayoutConsistance
2018-11-08 09:52:04 +09:00
Shin Yamamoto
16e8808ce5
Modify the backdrop default behavior
2018-11-07 11:18:05 +09:00
Shin Yamamoto
f4088fcb6b
Fix backdrop handling
2018-11-07 11:06:18 +09:00
Shin Yamamoto
5744491606
Fix the surface height on orientation change
2018-11-07 10:45:32 +09:00
Shin Yamamoto
d1b5a1f517
Merge pull request #29 from SCENEE/fix-navigation-bar-problem
...
Fix navigation bar problem
2018-11-06 10:10:45 +09:00
Shin Yamamoto
629807584b
Fix the removal interaction
2018-11-05 08:50:39 +09:00
Shin Yamamoto
ec9fcd473a
Fix the surface view height on non traslucent nav bar
2018-11-02 19:51:06 +09:00
Shin Yamamoto
fd5ca2c2fc
Clean up FloatingPanelSurfaceView and FloatingPanelLayout
2018-11-02 16:19:53 +09:00
Shin Yamamoto
c2dee28132
Improve FloatingPanelSurfaceView.bottomOverflow handling
2018-11-02 10:07:49 +09:00
Shin Yamamoto
00ccc0eb6a
Fix backdrop alpha issue
2018-11-02 10:07:49 +09:00
Shin Yamamoto
c2cea95aa5
Clean up FloatingPanelLayout consistance check
2018-11-02 09:17:58 +09:00
Shin Yamamoto
274027cb64
Allow one supported position
2018-11-02 09:17:58 +09:00
Shin Yamamoto
b97d418158
Change the default landscape layout
2018-10-28 08:36:31 +09:00
Shin Yamamoto
ea9bbcad27
Check consistance of FloatingPanelLayout
2018-10-28 06:41:37 +09:00
Shin Yamamoto
71be1f2ed5
Change the type of 'supportedPositions' from Array to Set
2018-10-28 06:41:37 +09:00
Shin Yamamoto
349bb91c6c
Improve the default impls of FloatingPanelLayout methods
2018-10-28 06:41:37 +09:00
Ortwin Gentz
4dcc5bc564
Fixed some typos and language in comments
2018-10-26 15:30:11 +02:00
Shin Yamamoto
4ebbea8e86
Fix FloatingPanelLayout.{topInteractionBuffer,bottomInteractionBuffer}
2018-10-26 14:27:40 +09:00
Shin Yamamoto
1e322f47d4
Update doc comment
2018-10-26 14:27:40 +09:00
Shin Yamamoto
e476cf5ce4
Fix the initial height of DebugTableViewController
2018-10-24 12:53:27 +09:00
Shin Yamamoto
95d188d5f1
Match the bottoms of the surface view and a device bottom
2018-10-24 08:16:42 +09:00