Skip to content

Commit

Permalink
DrawerKit release 0.3.1 (#37)
Browse files Browse the repository at this point in the history
* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* DrawerKit release 0.0.1 (#13) (#14)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* Add gif and fixes the circle CI badge. (#17)

* Adds a gif and fixes the circleci badge.

* Moved the gif down a bit.

* Removed extra space below the gif.

* Changes version from 0.0.1 to 0.1. (#18)

* Add missing link to Carthage (#15)

* Fix to README (#21)

* Changed version number from 0.0.1 to 0.1.1 in the dependency management sections of the README file.

* Fix README as per David's suggestion.

* Update podspec in preparation for release 0.1.2.

* Revert "Update podspec in preparation for release 0.1.2."

This reverts commit df1c07aa3ab36e1b82fc630ac847695edc928818.

* Add 4 UI tests to check the Drawer Kit demo app is working (#22)

- Open the drawer
- Close the drawer
- Slide to full screen
- Tap close on fully open drawer

* Run UI Tests as part of the CircleCI build (#25)

* Experiment in running the UI tests as part of the circleci build

* Fixed name in scheme

* Change simulator being used to match local environment

* Add scheme for demo with UI tests

* Between a branch build and the merge the version available for the simulator seems to have changed. This updates the yml file to reflect this (#26)

* New features (#27)

* Update README.md (#23)

* Fixed version number in Carthage section.

* Renamed some properties and functions, for better clarity of intention.

* More renaming along the same lines as the last commit.

* Added support for tapping on the drawer to fully present it

* More renaming.

* Turned on debug mode in the demo app.

* Make sure that quantities are always in their expected ranges.

* Introduced an enumeration for drawer states

* Removed extra blank line

* Replaced the DrawerPresenting protocol with a new protocol, DrawerCoordinating, and made it so that objects other than view controllers can also coordinate the presentation of drawers.

* Changed some configuration parameters in the demo app.

* Tweaked the demo.

* Added ChangeLog and updated ReadMe.

* More changes to ReadMe.

* Updated podspec.

* More changes to the ChangeLog and ReadMe files.

* Fixed guard indentation, as per comments.

* Fixed guard indentations, as per comments.

* New features and preparation for release 0.3.0 (#30)

* Update README.md (#23)

* Fixed version number in Carthage section.

* Renamed some properties and functions, for better clarity of intention.

* More renaming along the same lines as the last commit.

* Added support for tapping on the drawer to fully present it

* More renaming.

* Turned on debug mode in the demo app.

* Make sure that quantities are always in their expected ranges.

* Introduced an enumeration for drawer states

* Removed extra blank line

* Replaced the DrawerPresenting protocol with a new protocol, DrawerCoordinating, and made it so that objects other than view controllers can also coordinate the presentation of drawers.

* Changed some configuration parameters in the demo app.

* Large refactoring work in preparation for adding concurrent animations.

* WIP on concurrent animations

* Replaced the suffix Signature with Handler in DrawerAnimationActions.

* Added a number of TODO comments

* Minor change, for clarity.

* Changed some config params in the demo app.

* Turns out it's ok to simply return false in these two comparisons.

* Fixed code formatting.

* Fixed a subtle bug whereby UIKit animations that ended at positions differing by as much as 0.5 points were considered to have ended at different points when they should have ended at the same position.

* Fixed a bug whereby scaling animated in only one direction.

* Added example animations from the collapsed state to the fully expanded state, and back.

* Added support for automatically adding a handle view and automatically animating it.

* Added support for not covering a portion of the screen when fully expanding the drawer.

* Removed TODOs that have been handled already.

* Small refactoring.

* More refactoring.

* Added previous gif.

* Display the gifs at the same size.

* Removed an extraneous comment.

* Minor English corrections.

* Renamed some properties to avoid abbreviations. Not all abbreviations could be removed, however, because Swift doesn't allow functions and properties to have the same name.

* Merge master into dev (#32)

* Update README.md (#23)

* Release 0.2.0 (#28)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* DrawerKit release 0.0.1 (#13) (#14)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* Add gif and fixes the circle CI badge. (#17)

* Adds a gif and fixes the circleci badge.

* Moved the gif down a bit.

* Removed extra space below the gif.

* Changes version from 0.0.1 to 0.1. (#18)

* Add missing link to Carthage (#15)

* Fix to README (#21)

* Changed version number from 0.0.1 to 0.1.1 in the dependency management sections of the README file.

* Fix README as per David's suggestion.

* Update podspec in preparation for release 0.1.2.

* Revert "Update podspec in preparation for release 0.1.2."

This reverts commit df1c07aa3ab36e1b82fc630ac847695edc928818.

* Add 4 UI tests to check the Drawer Kit demo app is working (#22)

- Open the drawer
- Close the drawer
- Slide to full screen
- Tap close on fully open drawer

* Run UI Tests as part of the CircleCI build (#25)

* Experiment in running the UI tests as part of the circleci build

* Fixed name in scheme

* Change simulator being used to match local environment

* Add scheme for demo with UI tests

* Between a branch build and the merge the version available for the simulator seems to have changed. This updates the yml file to reflect this (#26)

* New features (#27)

* Update README.md (#23)

* Fixed version number in Carthage section.

* Renamed some properties and functions, for better clarity of intention.

* More renaming along the same lines as the last commit.

* Added support for tapping on the drawer to fully present it

* More renaming.

* Turned on debug mode in the demo app.

* Make sure that quantities are always in their expected ranges.

* Introduced an enumeration for drawer states

* Removed extra blank line

* Replaced the DrawerPresenting protocol with a new protocol, DrawerCoordinating, and made it so that objects other than view controllers can also coordinate the presentation of drawers.

* Changed some configuration parameters in the demo app.

* Tweaked the demo.

* Added ChangeLog and updated ReadMe.

* More changes to ReadMe.

* Updated podspec.

* More changes to the ChangeLog and ReadMe files.

* Fixed guard indentation, as per comments.

* Fixed guard indentations, as per comments.

* New features and prep for release 0.3.1 (#36)

* Update README.md (#23)

* Release 0.2.0 (#28)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* DrawerKit release 0.0.1 (#13) (#14)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* Add gif and fixes the circle CI badge. (#17)

* Adds a gif and fixes the circleci badge.

* Moved the gif down a bit.

* Removed extra space below the gif.

* Changes version from 0.0.1 to 0.1. (#18)

* Add missing link to Carthage (#15)

* Fix to README (#21)

* Changed version number from 0.0.1 to 0.1.1 in the dependency management sections of the README file.

* Fix README as per David's suggestion.

* Update podspec in preparation for release 0.1.2.

* Revert "Update podspec in preparation for release 0.1.2."

This reverts commit df1c07aa3ab36e1b82fc630ac847695edc928818.

* Add 4 UI tests to check the Drawer Kit demo app is working (#22)

- Open the drawer
- Close the drawer
- Slide to full screen
- Tap close on fully open drawer

* Run UI Tests as part of the CircleCI build (#25)

* Experiment in running the UI tests as part of the circleci build

* Fixed name in scheme

* Change simulator being used to match local environment

* Add scheme for demo with UI tests

* Between a branch build and the merge the version available for the simulator seems to have changed. This updates the yml file to reflect this (#26)

* New features (#27)

* Update README.md (#23)

* Fixed version number in Carthage section.

* Renamed some properties and functions, for better clarity of intention.

* More renaming along the same lines as the last commit.

* Added support for tapping on the drawer to fully present it

* More renaming.

* Turned on debug mode in the demo app.

* Make sure that quantities are always in their expected ranges.

* Introduced an enumeration for drawer states

* Removed extra blank line

* Replaced the DrawerPresenting protocol with a new protocol, DrawerCoordinating, and made it so that objects other than view controllers can also coordinate the presentation of drawers.

* Changed some configuration parameters in the demo app.

* Tweaked the demo.

* Added ChangeLog and updated ReadMe.

* More changes to ReadMe.

* Updated podspec.

* More changes to the ChangeLog and ReadMe files.

* Fixed guard indentation, as per comments.

* Fixed guard indentations, as per comments.

* DrawerKit 0.3.0 release (#35)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* DrawerKit release 0.0.1 (#13) (#14)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added DrawerKit empty framework

* Added basic view controllers and storyboards

* Fixed broken outlets

* Added implementation of DrawerKit. A few bits to complete still.

* Hooked up the view controllers to the custom presentation.

* Added clamping to the three possible resting positions of the drawer

* Added more configuration to the presenting VC

* Fixed a few glitches related to allowing partial expansion or not, and some refactoring.

* Removed the two timing configurations and now using only one for all animations.

* Added support for not having the gesture recognisers.

* Fixed a potential division by zero.

* Adding more configuration controls to presenting VC. WIP.

* Added debug mode.

* Added some TODOs

* Renamed a function to make it clear it's a debugging feature.

* Minor refactoring.

* Renamed some source files for better clarity of intention.

* Removed source headers.

* Changed the presented VC to make a larger drawer (easier to play with).

* Changed some parameters as per Sam's input.

* Improved behaviour of corner rounding at the two edges of the screen. Still not a perfect solution because the animator's completion block is, surprisingly, not always called. Apparently, that's a bug in UIViewPropertyAnimator.

* Made the logic for the drawer behaviour easier to read, because Sergey doesn't like `guard` with boolean statements. ;)

* Moved some code closer to where it's actually used.

* Minor formatting.

* Added a fix to the corner-radius animation issue whereby the corner radius would not be set to zero because the property animator's completion would not always be called. Now we force it to zero on presentationTransitionDidEnd() (for the appropriate drawer ending positions).

* Disabled automatic code signing.

* The heights of the bands surrounding the resting position of the drawer are now given in absolute rather than relative terms.

* Oopsie... committed a compiler error. Fixed now.

* Added a scrollview to the presented view controller in the demo app, for testing how scrolling interacts with the drag gesture recogniser in the presentation controller.

* Added an interaction controller, the first step in fixing the non-interactive presentation/dismissal itself.

* Renamed TransitionAnimator to AnimationController.

* Renamed a file to match the extension it's about.

* Duh, it was supposed to be AnimationController, not AnimatorController.

* Implemented interactive controller for the presentation and dismissal, and cleaned up the code for the animation controller (it doesn't need to know anything about the drawers).

* Added license file and CocoaPods podspec. Not passing lint just yet.

* Removed indirect access to configuration parameters.

* Removed currently unused source file TransitionGeometry.

* Fixed company name in the license file.

* Cleared the team entry in the demo app.

* Demo app: adding controls for all the configurable parameters. WIP.

* Added control for manipulating cubic Bezier control points, CubicBezierView.

* Added all the controls to the presenter VC.

* Fixed a TODO comment.

* Make sure that durationInSeconds is a positive value.

* Removed all references to coversStatusBar since that hasn't been implemented yet.

* Make sure that flickSpeedThreshold is a non-negative value. Also, if zero, disables support for flicking.

* Make sure that upperMarkGap and lowerMarkGap are non-negative values.

* Only add debugging mark lines if at least one of upperMarkGap and lowerMarkGap is a positive value.

* Make sure that maximumCornerRadius is a non-negative value.

* Only animate the corner radius if maximumCornerRadius is strictly positive.

* Make sure that numberOfTapsForOutsideDrawerDismissal is a non-negative value.

* Resolved an issue with animating rounding the presented view corners.

* Simplified the demo app to its bare essentials. No more configuration controls to the wazoo.

* Added based documentation to the library.

* Preliminary version of README. WIP.

* Removed unused assets.

* Added some pseudo-code to the README, to explain the presentation/dismissal logic.

* Code style change.

* Removed unnecessary [weak self] capture lists.

* Changed default value of durationInSeconds from 0.8 to 0.3 seconds.

* Fixed a botched global search/replace in DrawerConfiguration+Equatable.

* Renamed evil local gr variables to less evil names.

* Fixed guard statements as per comments.

* Removed a comment.

* Removed a protocol extension.

* Make sure that the height of the partially expanded drawer is non-negative.

* Added documentation to all exposed public entities.

* Style change as per comments.

* Fixed documentation.

* Updated README file.

* Tweaked the README file.

* Decreased the deployment target requirement, from 10.3 to 10.0.

* Removed hidden extension in the LICENSE file.

* Fixed source_files entry in the podspec. Removed the exclude_files entry.

* Added a .swift-version file with the appropriate version of Swift to pod lib lint the pod.

* Fixed the homepage in the podspec.

* Fixed a bug when running under iOS 10 in which the initial presentation animation doesn't complete, therefore not invoking viewDidAppear, which causes the drawer not to show up at all. The work-around means that the initial presentation and dismissal aren't interactive but Product signed off on that decision. The drawers work fine under iOS 11.

* Style change.

* Killed the use of IUO references.

* Changed author email address in the podspec.

* Added support for Carthage.

* [ci skip] Removed a commented out section from the README. Also, an excuse to turn CI off since DrawerKit fails it for lack of configuration for testing.

* Added CircleCI config file. (#9)

* Added CircleCI config file.

* Changed circle.yml to "test" with the simulator, which disables testing

* Let's try this one more time, shall we?

* And again

* Fixed circle.yml

* And again

* Fixed circle.yml

* Fixed circle.yml.

* Added CircleCI badge to README.

* Simplified circle.yml build command.

* Added dependency management commands to circle.yml

* Fixed podspec source item. (#12)

* Fixed podspec source item.

* Missed the s in https.

* Add gif and fixes the circle CI badge. (#17)

* Adds a gif and fixes the circleci badge.

* Moved the gif down a bit.

* Removed extra space below the gif.

* Changes version from 0.0.1 to 0.1. (#18)

* Add missing link to Carthage (#15)

* Fix to README (#21)

* Changed version number from 0.0.1 to 0.1.1 in the dependency management sections of the README file.

* Fix README as per David's suggestion.

* Update podspec in preparation for release 0.1.2.

* Revert "Update podspec in preparation for release 0.1.2."

This reverts commit df1c07aa3ab36e1b82fc630ac847695edc928818.

* Add 4 UI tests to check the Drawer Kit demo app is working (#22)

- Open the drawer
- Close the drawer
- Slide to full screen
- Tap close on fully open drawer

* Run UI Tests as part of the CircleCI build (#25)

* Experiment in running the UI tests as part of the circleci build

* Fixed name in scheme

* Change simulator being used to match local environment

* Add scheme for demo with UI tests

* Between a branch build and the merge the version available for the simulator seems to have changed. This updates the yml file to reflect this (#26)

* New features (#27)

* Update README.md (#23)

* Fixed version number in Carthage section.

* Renamed some properties and functions, for better clarity of intention.

* More renaming along the same lines as the last commit.

* Added support for tapping on the drawer to fully present it

* More renaming.

* Turned on debug mode in the demo app.

* Make sure that quantities are always in their expected ranges.

* Introduced an enumeration for drawer states

* Removed extra blank line

* Replaced the DrawerPresenting protocol with a new protocol, DrawerCoordinating, and made it so that objects other than view controllers can also coordinate the presentation of drawers.

* Changed some configuration parameters in the demo app.

* Tweaked the demo.

* Added ChangeLog and updated ReadMe.

* More changes to ReadMe.

* Updated podspec.

* More changes to the ChangeLog and ReadMe files.

* Fixed guard indentation, as per comments.

* Fixed guard indentations, as per comments.

* New features and preparation for release 0.3.0 (#30)

* Update README.md (#23)

* Fixed version number in Carthage section.

* Renamed some properties and functions, for better clarity of intention.

* More renaming along the same lines as the last commit.

* Added support for tapping on the drawer to fully present it

* More renaming.

* Turned on debug mode in the demo app.

* Make sure that quantities are always in their expected ranges.

* Introduced an enumeration for drawer states

* Removed extra blank line

* Replaced the DrawerPresenting protocol with a new protocol, DrawerCoordinating, and made it so that objects other than view controllers can also coordinate the presentation of drawers.

* Changed some configuration parameters in the demo app.

* Large refactoring work in preparation for adding concurrent animations.

* WIP on concurrent animations

* Replaced the suffix Signature with Handler in DrawerAnimationActions.

* Added a number of TODO comments

* Minor change, for clarity.

* Changed some config params in the demo app.

* Turns out it's ok to simply return false in these two comparisons.

* Fixed code formatting.

* Fixed a subtle bug whereby UIKit animations that ended at positions differing by as much as 0.5 points were considered to have ended at different points when they should have ended at the same position.

* Fixed a bug whereby scaling animated in only one direction.

* Added example animations from the collapsed state to the fully expanded state, and back.

* Added support for automatically adding a handle view and automatically animating it.

* Added support for not covering a portion of the screen when fully expanding the drawer.

* Removed TODOs that have been handled already.

* Small refactoring.

* More refactoring.

* Added previous gif.

* Display the gifs at the same size.

* Removed an extraneous comment.

* Minor English corrections.

* Renamed some properties to avoid abbreviations. Not all abbreviations could be removed, however, because Swift doesn't allow functions and properties to have the same name.

* Merge master into dev (#32)

* Update README.md (#23)

* Release 0.2.0 (#28)

* Added git ignore file

* Added project workspace

* Added tab bar template project

* Added Drawe…
  • Loading branch information
wltrup authored and dmcrodrigues committed Nov 8, 2017
1 parent e427cfe commit 7f5e0b1
Show file tree
Hide file tree
Showing 16 changed files with 204 additions and 43 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# DrawerKit

## v. 0.3.1

- Better support for concurrent animations: in previous versions, the actual presenting view controller wasn't necessarily what you'd think is the presenting view controller, which caused problems when trying to animate its view concurrently with the drawer animation. Now, although it's still the case that the presenting view controller may not be the view controller you think it is, the view controller that you think is the presenting view controller and which you add conformance to `DrawerAnimationParticipant` is the view controller whose animation closures get invoked.

- Notifications: it's now possible to subscribe to notifications indicating when the drawer is tapped (both in its interior and in its exterior), when drawer transitions are about to start, and when they're completed.

## v. 0.3.0

Release 0.3.0 breaks backwards compatibility with the earlier releases. Specific changes and new features are as follows:
Expand Down
2 changes: 1 addition & 1 deletion DrawerKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "DrawerKit"
s.version = "0.3.0"
s.version = "0.3.1"
s.summary = "An implementation of an interactive and animated view, similar to what you see in Apple Maps"

s.description = <<-DESC
Expand Down
8 changes: 8 additions & 0 deletions DrawerKit/DrawerKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
CB2CB79F1F8E951900AA152D /* AnimationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB2CB79C1F8E951900AA152D /* AnimationController.swift */; };
CB2CB7AD1F8E9D9900AA152D /* DrawerDisplayController+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB2CB7AC1F8E9D9900AA152D /* DrawerDisplayController+Extensions.swift */; };
CB2CB7AF1F8E9F4C00AA152D /* DrawerDisplayController+Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB2CB7AE1F8E9F4C00AA152D /* DrawerDisplayController+Configuration.swift */; };
CB3CAFBE1FB248B000AD28A1 /* DrawerNotifications.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB3CAFBD1FB248B000AD28A1 /* DrawerNotifications.swift */; };
CB3CAFC01FB24BD800AD28A1 /* Notifications.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB3CAFBF1FB24BD800AD28A1 /* Notifications.swift */; };
CB5AF7FC1F9B834E000B2DC9 /* DrawerState.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB5AF7FB1F9B834E000B2DC9 /* DrawerState.swift */; };
CB5AF8001F9BDAC5000B2DC9 /* DrawerAnimationParticipant.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB5AF7FF1F9BDAC5000B2DC9 /* DrawerAnimationParticipant.swift */; };
CB5AF8021F9BDF29000B2DC9 /* DrawerAnimationActions.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB5AF8011F9BDF29000B2DC9 /* DrawerAnimationActions.swift */; };
Expand Down Expand Up @@ -44,6 +46,8 @@
CB2CB79C1F8E951900AA152D /* AnimationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimationController.swift; sourceTree = "<group>"; };
CB2CB7AC1F8E9D9900AA152D /* DrawerDisplayController+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "DrawerDisplayController+Extensions.swift"; sourceTree = "<group>"; };
CB2CB7AE1F8E9F4C00AA152D /* DrawerDisplayController+Configuration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "DrawerDisplayController+Configuration.swift"; sourceTree = "<group>"; };
CB3CAFBD1FB248B000AD28A1 /* DrawerNotifications.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DrawerNotifications.swift; sourceTree = "<group>"; };
CB3CAFBF1FB24BD800AD28A1 /* Notifications.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Notifications.swift; sourceTree = "<group>"; };
CB5AF7FB1F9B834E000B2DC9 /* DrawerState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DrawerState.swift; sourceTree = "<group>"; };
CB5AF7FF1F9BDAC5000B2DC9 /* DrawerAnimationParticipant.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DrawerAnimationParticipant.swift; sourceTree = "<group>"; };
CB5AF8011F9BDF29000B2DC9 /* DrawerAnimationActions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DrawerAnimationActions.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -81,6 +85,8 @@
isa = PBXGroup;
children = (
CB2CB79A1F8E951900AA152D /* DrawerDisplayController.swift */,
CB3CAFBD1FB248B000AD28A1 /* DrawerNotifications.swift */,
CB3CAFBF1FB24BD800AD28A1 /* Notifications.swift */,
CB5AF8071F9BE105000B2DC9 /* Protocols */,
CB5AF8081F9BE12E000B2DC9 /* Structs */,
CB5AF8121F9BE9B3000B2DC9 /* Extensions */,
Expand Down Expand Up @@ -250,6 +256,7 @@
CB5AF8061F9BE0E3000B2DC9 /* DrawerGeometry.swift in Sources */,
CB5AF8021F9BDF29000B2DC9 /* DrawerAnimationActions.swift in Sources */,
CB2CB7941F8E934500AA152D /* DrawerPresentable.swift in Sources */,
CB3CAFC01FB24BD800AD28A1 /* Notifications.swift in Sources */,
CB5AF8001F9BDAC5000B2DC9 /* DrawerAnimationParticipant.swift in Sources */,
CB619CEC1F8FFBAD0076E1DE /* InteractionController.swift in Sources */,
CB6F86B81F9C0539000FA37A /* PresentationController+Properties.swift in Sources */,
Expand All @@ -265,6 +272,7 @@
CB6F86BA1F9C05E6000FA37A /* PresentationController+Gestures.swift in Sources */,
CB5AF7FC1F9B834E000B2DC9 /* DrawerState.swift in Sources */,
CB2CB7971F8E934500AA152D /* DrawerConfiguration.swift in Sources */,
CB3CAFBE1FB248B000AD28A1 /* DrawerNotifications.swift in Sources */,
CBFA36F21F9C4004006847BB /* GeometryEvaluator.swift in Sources */,
CB6F86B41F9C036D000FA37A /* PresentationController+Utilities.swift in Sources */,
CB5AF8141F9BEA91000B2DC9 /* DrawerAnimationInfo+Geometry.swift in Sources */,
Expand Down
25 changes: 18 additions & 7 deletions DrawerKit/DrawerKit/Internal API/AnimationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ final class AnimationController: NSObject {
private let isPresentation: Bool
private let configuration: DrawerConfiguration

init(isPresentation: Bool, configuration: DrawerConfiguration) {
let presentingDrawerAnimationActions: DrawerAnimationActions
let presentedDrawerAnimationActions: DrawerAnimationActions

init(isPresentation: Bool,
configuration: DrawerConfiguration,
presentingDrawerAnimationActions: DrawerAnimationActions,
presentedDrawerAnimationActions: DrawerAnimationActions) {
self.isPresentation = isPresentation
self.configuration = configuration
self.presentingDrawerAnimationActions = presentingDrawerAnimationActions
self.presentedDrawerAnimationActions = presentedDrawerAnimationActions
super.init()
}
}
Expand Down Expand Up @@ -58,22 +66,25 @@ extension AnimationController: UIViewControllerAnimatedTransitioning {
duration,
isPresentation)

AnimationSupport.clientPrepareViews(presentingVC: presentingVC,
presentedVC: presentedVC,
let presentingAnimationActions = self.presentingDrawerAnimationActions
let presentedAnimationActions = self.presentedDrawerAnimationActions

AnimationSupport.clientPrepareViews(presentingDrawerAnimationActions: presentingAnimationActions,
presentedDrawerAnimationActions: presentedAnimationActions,
info)
presentedVC.view.frame = initialFrame

animator.addAnimations {
presentedVC.view.frame = finalFrame
AnimationSupport.clientAnimateAlong(presentingVC: presentingVC,
presentedVC: presentedVC,
AnimationSupport.clientAnimateAlong(presentingDrawerAnimationActions: presentingAnimationActions,
presentedDrawerAnimationActions: presentedAnimationActions,
info)
}

animator.addCompletion { endingPosition in
let finished = (endingPosition == UIViewAnimatingPosition.end)
AnimationSupport.clientCleanupViews(presentingVC: presentingVC,
presentedVC: presentedVC,
AnimationSupport.clientCleanupViews(presentingDrawerAnimationActions: presentingAnimationActions,
presentedDrawerAnimationActions: presentedAnimationActions,
endingPosition,
info)
transitionContext.completeTransition(finished)
Expand Down
26 changes: 14 additions & 12 deletions DrawerKit/DrawerKit/Internal API/AnimationSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,29 @@ struct AnimationSupport {
endPosition: endingPosition)
}

static func clientPrepareViews(presentingVC: UIViewController,
presentedVC: UIViewController,
static func clientPrepareViews(presentingDrawerAnimationActions: DrawerAnimationActions,
presentedDrawerAnimationActions: DrawerAnimationActions,
_ info: DrawerAnimationInfo) {
(presentingVC as? DrawerAnimationParticipant)?.drawerAnimationActions.prepare?(info)
(presentedVC as? DrawerAnimationParticipant)?.drawerAnimationActions.prepare?(info)
NotificationCenter.default.post(notification: DrawerNotification.transitionWillStart(info: info))
presentingDrawerAnimationActions.prepare?(info)
presentedDrawerAnimationActions.prepare?(info)
}

static func clientAnimateAlong(presentingVC: UIViewController,
presentedVC: UIViewController,
static func clientAnimateAlong(presentingDrawerAnimationActions: DrawerAnimationActions,
presentedDrawerAnimationActions: DrawerAnimationActions,
_ info: DrawerAnimationInfo) {
(presentingVC as? DrawerAnimationParticipant)?.drawerAnimationActions.animateAlong?(info)
(presentedVC as? DrawerAnimationParticipant)?.drawerAnimationActions.animateAlong?(info)
presentingDrawerAnimationActions.animateAlong?(info)
presentedDrawerAnimationActions.animateAlong?(info)
}

static func clientCleanupViews(presentingVC: UIViewController,
presentedVC: UIViewController,
static func clientCleanupViews(presentingDrawerAnimationActions: DrawerAnimationActions,
presentedDrawerAnimationActions: DrawerAnimationActions,
_ endingPosition: UIViewAnimatingPosition,
_ info: DrawerAnimationInfo) {
var endInfo = info
endInfo.endPosition = endingPosition
(presentingVC as? DrawerAnimationParticipant)?.drawerAnimationActions.cleanup?(info)
(presentedVC as? DrawerAnimationParticipant)?.drawerAnimationActions.cleanup?(info)
presentingDrawerAnimationActions.cleanup?(info)
presentedDrawerAnimationActions.cleanup?(info)
NotificationCenter.default.post(notification: DrawerNotification.transitionDidFinish(info: info))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ extension DrawerDisplayController: UIViewControllerTransitioningDelegate {
presenting: UIViewController?,
source: UIViewController) -> UIPresentationController? {
let presentationController = PresentationController(presentingVC: presentingVC,
presentingDrawerAnimationActions: presentingDrawerAnimationActions,
presentedVC: presented,
presentedDrawerAnimationActions: presentedDrawerAnimationActions,
configuration: configuration,
inDebugMode: inDebugMode)
presentationController.delegate = self
Expand All @@ -15,11 +17,17 @@ extension DrawerDisplayController: UIViewControllerTransitioningDelegate {
public func animationController(forPresented presented: UIViewController,
presenting: UIViewController,
source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return AnimationController(isPresentation: true, configuration: configuration)
return AnimationController(isPresentation: true,
configuration: configuration,
presentingDrawerAnimationActions: presentingDrawerAnimationActions,
presentedDrawerAnimationActions: presentedDrawerAnimationActions)
}

public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return AnimationController(isPresentation: false, configuration: configuration)
return AnimationController(isPresentation: false,
configuration: configuration,
presentingDrawerAnimationActions: presentingDrawerAnimationActions,
presentedDrawerAnimationActions: presentedDrawerAnimationActions)
}

public func interactionControllerForPresentation(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ extension PresentationController {
let autoAnimatesDimming = configuration.handleViewConfiguration.autoAnimatesDimming
if autoAnimatesDimming { self.handleView?.alpha = handleViewAlpha(at: startingState) }

AnimationSupport.clientPrepareViews(presentingVC: presentingVC,
presentedVC: presentedVC,
let presentingAnimationActions = self.presentingDrawerAnimationActions
let presentedAnimationActions = self.presentedDrawerAnimationActions

AnimationSupport.clientPrepareViews(presentingDrawerAnimationActions: presentingAnimationActions,
presentedDrawerAnimationActions: presentedAnimationActions,
info)

animator.addAnimations {
self.currentDrawerY = endingPositionY
if autoAnimatesDimming { self.handleView?.alpha = endingHandleViewAlpha }
if maxCornerRadius != 0 { self.currentDrawerCornerRadius = endingCornerRadius }
AnimationSupport.clientAnimateAlong(presentingVC: presentingVC,
presentedVC: presentedVC,
AnimationSupport.clientAnimateAlong(presentingDrawerAnimationActions: presentingAnimationActions,
presentedDrawerAnimationActions: presentedAnimationActions,
info)
}

Expand Down Expand Up @@ -84,8 +87,8 @@ extension PresentationController {
self.currentDrawerCornerRadius = 0
}

AnimationSupport.clientCleanupViews(presentingVC: presentingVC,
presentedVC: presentedVC,
AnimationSupport.clientCleanupViews(presentingDrawerAnimationActions: presentingAnimationActions,
presentedDrawerAnimationActions: presentedAnimationActions,
endingPosition,
info)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ extension PresentationController {
guard let tapGesture = drawerFullExpansionTapGR else { return }
let tapY = tapGesture.location(in: presentedView).y
guard tapY < drawerPartialHeight else { return }
NotificationCenter.default.post(notification: DrawerNotification.drawerInteriorTapped)
animateTransition(to: .fullyExpanded)
}

@objc func handleDrawerDismissalTap() {
guard let tapGesture = drawerDismissalTapGR else { return }
let tapY = tapGesture.location(in: containerView).y
guard tapY < currentDrawerY else { return }
NotificationCenter.default.post(notification: DrawerNotification.drawerExteriorTapped)
tapGesture.isEnabled = false
presentedViewController.dismiss(animated: true)
}
Expand Down
7 changes: 7 additions & 0 deletions DrawerKit/DrawerKit/Internal API/PresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,25 @@ final class PresentationController: UIPresentationController {
let inDebugMode: Bool
let handleView: UIView?

let presentingDrawerAnimationActions: DrawerAnimationActions
let presentedDrawerAnimationActions: DrawerAnimationActions

var drawerFullExpansionTapGR: UITapGestureRecognizer?
var drawerDismissalTapGR: UITapGestureRecognizer?
var drawerDragGR: UIPanGestureRecognizer?
var lastDrawerState: DrawerState = .collapsed

init(presentingVC: UIViewController?,
presentingDrawerAnimationActions: DrawerAnimationActions,
presentedVC: UIViewController,
presentedDrawerAnimationActions: DrawerAnimationActions,
configuration: DrawerConfiguration,
inDebugMode: Bool = false) {
self.configuration = configuration
self.inDebugMode = inDebugMode
self.handleView = (configuration.hasHandleView ? UIView() : nil)
self.presentingDrawerAnimationActions = presentingDrawerAnimationActions
self.presentedDrawerAnimationActions = presentedDrawerAnimationActions
super.init(presentedViewController: presentedVC, presenting: presentingVC)
}
}
Expand Down
16 changes: 16 additions & 0 deletions DrawerKit/DrawerKit/Public API/DrawerDisplayController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public final class DrawerDisplayController: NSObject {
weak var presentingVC: UIViewController?
/* strong */ var presentedVC: (UIViewController & DrawerPresentable)

let presentingDrawerAnimationActions: DrawerAnimationActions
let presentedDrawerAnimationActions: DrawerAnimationActions

let inDebugMode: Bool

/// Initialiser for `DrawerDisplayController`.
Expand All @@ -38,6 +41,19 @@ public final class DrawerDisplayController: NSObject {
self.presentedVC = presentedViewController
self.configuration = configuration
self.inDebugMode = inDebugMode

if let presentingAsDrawerParticipant = presentingViewController as? DrawerAnimationParticipant {
self.presentingDrawerAnimationActions = presentingAsDrawerParticipant.drawerAnimationActions
} else {
self.presentingDrawerAnimationActions = DrawerAnimationActions()
}

if let presentedAsDrawerParticipant = presentedViewController as? DrawerAnimationParticipant {
self.presentedDrawerAnimationActions = presentedAsDrawerParticipant.drawerAnimationActions
} else {
self.presentedDrawerAnimationActions = DrawerAnimationActions()
}

super.init()
presentedViewController.transitioningDelegate = self
presentedViewController.modalPresentationStyle = .custom
Expand Down
Loading

0 comments on commit 7f5e0b1

Please sign in to comment.