Shin Yamamoto
75c27bc232
Add test_getBackdropAlpha()
2019-07-06 16:16:22 +09:00
Shin Yamamoto
cbcc35268d
Add FloatingPanelPositionTests
2019-07-06 16:16:20 +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
f411e81949
Add FloatingPanelControllerTests.test_moveTo()
2019-07-06 16:15:32 +09:00
Shin Yamamoto
45d7cb7218
Add FloatingPanelController.swhoForTest()
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
489d7696cc
Add test_originSurfaceY
2019-07-06 16:15:32 +09:00
Shin Yamamoto
0661f08a07
Fix FloatingPanelLayoutTests
2019-07-03 14:25:57 +09:00
Shin Yamamoto
206475e6ab
Merge pull request #232 from SCENEE/refactor-layout-adapter
...
Refactor layout adapter
2019-07-03 14:24:47 +09:00
Shin Yamamoto
a4a68e5b39
Add test_surfaceView_constraintsUpdate()
2019-07-03 11:46:45 +09:00
Shin Yamamoto
de7ab0e0cb
Rename FloatingPanelViewTests to FloatingPanelSurfaceViewTests
2019-07-03 11:46:45 +09:00
Shin Yamamoto
5f7b5ce81c
Add FloatingPanelLayoutTests & Utils
2019-07-03 11:46:45 +09:00
Shin Yamamoto
36d7ea5100
Improve testing speed
2019-07-03 11:34:21 +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
a37931b62d
Merge pull request #230 from SCENEE/fix-scrollindicator
...
Fix the scroll indicator lock on a contentVC reset
2019-07-03 09:55:32 +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
c4dfe33a5e
Merge pull request #229 from SCENEE/release-1.6.1
...
Release v1.6.1
2019-06-29 09:31:17 +09:00
Shin Yamamoto
999eeb47ba
Release v1.6.1
v1.6.1
2019-06-29 08:33:24 +09:00
Shin Yamamoto
a5bf02cfec
Merge pull request #228 from SCENEE/fix-unexpected-layout-update
...
Fix an unexpected layout update on iOS13
2019-06-29 08:32:48 +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
c9c4000536
Merge pull request #225 from SCENEE/fix-seamless-scrolling
...
Remove workaround for tableView(_:didSelectRowAt:) issue
2019-06-19 10:34:57 +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
3815a08af5
Merge pull request #221 from SCENEE/fix-closing-panel-in-bounce
...
Fix closing panel during internal scroll view bounce
2019-06-17 08:04: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
Robbie Trencheny
f4857a3da9
Add Swift Package Manager support ( #219 )
...
* Add Package.swift
2019-06-13 07:59:12 +09:00
Shin Yamamoto
e074c3caf1
Merge pull request #220 from SCENEE/fix-removal-crash
...
Fix the crash while closeing via dragging
2019-06-12 08:56:31 +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
2cb142a31f
Merge pull request #213 from SCENEE/release-1.6.0
...
Release v1.6.0
2019-06-03 22:12:36 +09:00
Shin Yamamoto
2b05ea8d92
Release v1.6.0
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
Shin Yamamoto
e2ebfd01df
Merge pull request #211 from SCENEE/avoid-weird-crash
...
* Use wholemodule compilation mode on Debug
* Set APPLICATION_EXTENSION_API_ONLY to YES by default
2019-06-01 13:55:00 +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
624e3f7553
Set APPLICATION_EXTENSION_API_ONLY to YES by default
2019-05-31 13:34:26 +09:00
Shin Yamamoto
3cc8538db3
Use wholemodule compilation mode on Debug
2019-05-31 13:34:07 +09:00
Shin Yamamoto
a9a65436bb
Merge pull request #209 from SCENEE/improve-tests
...
Add unit tests
2019-05-27 22:21:37 +09:00
Shin Yamamoto
353dabfc47
Update Maps example for iOS 10 shadow
2019-05-25 16:07:22 +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
59a6c7e576
Fix errors on simulator testing
...
Fix the following errors.
- 'dyld: program was built for a platform that is not supported by this runtime'
- 'dyld: Library not loaded: @rpath/libswiftCore.dylib'
2019-05-25 16:07:22 +09:00
Shin Yamamoto
0b0148635e
Fix .travis.yml
2019-05-25 16:07:22 +09:00
Shin Yamamoto
c354d8ea92
Modify FloatingSurfaceView.cornerRadius
2019-05-25 16:07:22 +09:00