Shin Yamamoto
75c27bc232
Add test_getBackdropAlpha()
2019-07-06 16:16:22 +09:00
Shin Yamamoto
11ba247ac4
Fix .hidden position's support
...
* Refactor FloatingPanel.targetPosition()
* Add test_targetPosition tests
* Fix bottomY
* Call shouldProjectMomentum(_:for:) only when a projection occurs on next
or pre segment. It means the delegate method not called for redirection.
* Improve all projection
2019-07-06 16:15:32 +09:00
Shin Yamamoto
81f42d3951
Add LayoutSegment
2019-07-06 16:15:32 +09:00
Shin Yamamoto
2f7aed3e34
Add FloatingPanelPosition.{next,pre}(in:)
2019-07-06 16:15:32 +09:00
Shin Yamamoto
01f8261f0b
Add an assertion to check an invalid move
...
- Add FloatingPanelLayoutAdapter.isValid(_:)
2019-07-06 16:15:32 +09:00
Shin Yamamoto
33f8cf3802
Modify FloatingPanel.distance(to:)
2019-07-03 11:34:21 +09:00
Shin Yamamoto
f6da876fdf
Add botomMostState prop
2019-07-03 11:34:21 +09:00
Shin Yamamoto
96c5dc7b74
Add FloatingPanelLayoutTests
2019-07-03 11:34:02 +09:00
Shin Yamamoto
5c848d9bf5
Fix the scroll indicator lock on a contentVC reset
...
The locking logic couldn't take care of the case where a content view
controller of a FloatingPanelController object is replaced.
2019-07-02 19:12:58 +09:00
Shin Yamamoto
265b805fa9
No more need FloatingPanel to conform UIScrollViewDelegate
2019-07-02 14:21:10 +09:00
Shin Yamamoto
999eeb47ba
Release v1.6.1
2019-06-29 08:33:24 +09:00
Shin Yamamoto
c10186e50a
Prevent an unexpected layout update on iOS13
...
On iOS13, UITraitCollection.userInterfaceStyle can be changed
from .light to .dark when an app transitions to the background.
2019-06-29 07:41:52 +09:00
Shin Yamamoto
7a1cbf99d4
Rename setUpLayout to activateLayout
2019-06-28 20:23:10 +09:00
Shin Yamamoto
656bbc1b1c
Remove workaround for tableView(_:didSelectRowAt:) issue
...
The workaround was added to avoid `tableView(_:didSelectRowAt:)` not
being called on first tap after the moving animation. However, it
doesn't only resolved the issue, but also has side effects.
For example, it affects the seamless scrolling in dragging up a panel from
half to full after bouncing it in the bottom buffer. The problem occurs
on "Tab2" sample of "Show Tab Bar".
Moreover the UITableView issue seems to be relieved on iOS 13.
Therefore I remove the workaround.
2019-06-19 09:39:56 +09:00
Shin Yamamoto
404fdb6496
Fix flushing a scroll indicator
...
1. A scroll indicator flushed at the first time when a tacking scroll view's
offset is zero and a user swipes down a panel at the top most position
2. A scroll indicator flushed at the first time when a tacking scroll view's
offset is zero and a user swipes up a panel at non top most position
2019-06-16 21:33:37 +09:00
Shin Yamamoto
573f355c15
Remove unnecessary code
...
There is not reason why the code is needed because the scroll tracking
logic is working well without it.
2019-06-16 21:32:35 +09:00
Shin Yamamoto
bd0c891795
Fix closing panel during internal scroll view bounce
...
Now the scroll tracking is working well without the scroll offset handling
at the top most position in the callback of a scroll pan gesture.
2019-06-14 14:00:55 +09:00
Shin Yamamoto
0f4c7503b1
Fix the crash while closeing via dragging
...
While closing the viewcontroller via dragging, calling floatPanelController's hide() will cause a crash.
2019-06-11 08:26:16 +09:00
Shin Yamamoto
2b05ea8d92
Release v1.6.0
2019-06-03 20:56:04 +09:00
Shin Yamamoto
d255e1ea4a
Call `super.updateConstraints()' as the final step
2019-06-03 20:51:58 +09:00
Shin Yamamoto
6fcb817fb8
Add the rubberbanding behavior for top & bottom buffer ( #144 )
...
* Add sample code
* Fix updateInteractiveTopConstraint()
* {min,max}Y variables are confusing because it's not a value of coordinate Y,
but a constant value from the `interactiveTopConstraint`.
2019-06-01 16:19:09 +09:00
Sven Tiigi
cf70929204
Added ContentInset Property on SurfaceView API ( #200 )
...
* Added Show ContentInset to Example application
2019-06-01 13:46:18 +09:00
Shin Yamamoto
1bdf0f5b78
Remove unnecessary frame update
2019-05-25 16:07:22 +09:00
Shin Yamamoto
6696d7f71d
Fix UIVisualEffectView on iOS10
...
This regression has happened since v1.2.0
2019-05-25 16:07:22 +09:00
Shin Yamamoto
c354d8ea92
Modify FloatingSurfaceView.cornerRadius
2019-05-25 16:07:22 +09:00
Shin Yamamoto
9562cdaccb
Clean up surface props
2019-05-25 16:07:22 +09:00
Shin Yamamoto
bcfff8a33a
Add FloatingPanelViewTests
2019-05-25 16:07:21 +09:00
Shin Yamamoto
2f23520330
Improve ViewTests.test_WarningRetainCycle()
2019-05-25 16:06:56 +09:00
Shin Yamamoto
c67b56e7af
Clean up code
2019-05-17 22:54:47 +09:00
Shin Yamamoto
bf39f07691
Use lazy properties in the surface view
2019-05-16 10:43:41 +09:00
Shin Yamamoto
05478fa8fa
Avoid calling {lock,unlock}ScrollView() unexpectedly
2019-05-11 15:16:58 +09:00
Shin Yamamoto
d123afc3f7
Fix a crash
2019-05-11 13:40:58 +09:00
Shin Yamamoto
b1b3c15300
Merge pull request #201 from SCENEE/fix-scroll-lock
...
Fix scroll lock
2019-05-11 12:51:53 +09:00
Shin Yamamoto
9b5459af8e
Fix the content height changed by a container inset
2019-05-11 12:11:04 +09:00
Shin Yamamoto
96d2ea57f5
Clean up prop naming
2019-05-11 11:53:05 +09:00
Shin Yamamoto
b78c5f4ece
Decouple between grabberTopPadding and containerTopInset
2019-05-11 11:02:06 +09:00
Shin Yamamoto
341522ccaa
Fix grabberhandle corner
2019-05-11 11:02:06 +09:00
Shin Yamamoto
833628e42f
Update the content view height by containerTopInset
2019-05-11 11:02:06 +09:00
Shin Yamamoto
50c1c6fdc9
Fix the dependency on ordering prop updates
2019-05-11 11:02:06 +09:00
Shin Yamamoto
213386e822
Fix the sign of containerTopInset
2019-05-11 11:02:06 +09:00
Shin Yamamoto
17317ed274
Merge pull request #194 from nderkach/master
...
Grabber handle and top offset customizations
2019-05-11 10:58:25 +09:00
Shin Yamamoto
652ae8c967
Remove a condition to prevent animation cancel
...
Because I can't confirm any effect to fix that selecting a table view cell
sometimes isn't working after flicking to half from full.
2019-05-04 16:15:10 +09:00
Shin Yamamoto
ec0e8cbdaf
Avoid any tap gesture recognition while dragging a panel
2019-05-04 16:03:19 +09:00
Shin Yamamoto
c15d4c9035
Fix the moving animation's interruption
2019-05-04 16:03:19 +09:00
Shin Yamamoto
194a197e83
Fix a scroll lock after moving a panel
2019-05-04 14:46:39 +09:00
Shin Yamamoto
7d5f03bb6e
Release v1.5.1
2019-04-25 16:18:59 +09:00
Nikolay Derkach
60f41e168f
configure grabber handle and top container offset
2019-04-24 14:07:46 +02:00
Shin Yamamoto
680b16aa25
Merge pull request #185 from SCENEE/fix-tap-abort
...
Fix a touch abort on the interaction interrupted
2019-04-24 14:54:20 +09:00
Shin Yamamoto
2394c03dca
Polish a doc comment
2019-04-20 16:00:22 +09:00
Shin Yamamoto
c8f211f2bf
fix typo
2019-04-19 08:56:54 +09:00