Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make rotation view customizable (#308)
* feat: update API to allow users use their own rotation control view * refactor: refactor RotationControlViewProtocol and add comments * refactor: use showRotationControlView instead of showRotationDial in CropViewConfig * fix: use RotationControlViewProtocol instead of concrete class RotationDial rename "rotation dial" with "rotation control view" * feat: add isAttachedToCropView to RotationControlViewProtocol * refactor: rename showRotationControlView to showAttachedRotationControlView * fix: fix compile errors in Example project * feat: add more logic for rotation control view * feat: move viewModel.setTouchRotationBoardStatus() to rotationControlView.didUpdateRotationValue to let rotation view controller which is not controlled by CropView to show rotating indicators * fix: fix logic of setupRotationControlViewIfNeeded When using rotationControlView passed by users, do not use cropViewConfig.showAttachedRotationControlView * fix: fix logic in setupRotationControlViewIfNeeded and setupRotationDial * refactor: rename setupRotationDial to setupRotationDialIfNeeded
- Loading branch information
1 parent
a54521b
commit 07d1b32
Showing
15 changed files
with
208 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.