All notable changes of the library will be documented in this file.
- Renamed
SideMenuItemShadow
toSideMenuItemOptions
to allow for additional visual properties to be changed. (Sorry for the volitility. The new name gives better flexibility going forward.) - Moved the drop shadow customization for the opened menu item to a property on
SideMenuItemOption
calledshadow
. Use theShadow
struct now to assign your custom values. MenuContainerViewController
'sshadowOptions
property has been renamed tocurrentItemOptions
- Ability to globally change the drop shadow of the current content view while the menu is open (#61)
- New sample project controller to tweak the transition settings
- Status bar color can now be updated on a controller by controller basis
- Changed default
contentScale
value from0.88
to0.86
(#53, #66, #72) - Updated sample project to better reflect the README demo gif
- Dropped support for iOS 8
2.1 - 2017-10-23
- Swift 4 support
- Code refactoring
- Check if menu is opened before a transition
- Small UI fix of Sample, associated with iOS 11
2.0 - 2017-06-07
- UITabBarController and UINavigationController menu items support
- Rotation support
- Public methods documentation in code
- CHANGELOG file
- Renamed
showMenu()
/hideMenu()
methods toshowSideMenu()
/hideSideMenu()
- Reworked Sample
Migration notes
- To mark UIViewController as item of SideMenu you should adopt
SideMenuItemContent
protocol instead of inheritance fromMenuItemContentViewController
. To show menu you should callshowSideMenu()
method from this protocol.
import InteractiveSideMenu
class KittyViewController: UIViewController, SideMenuItemContent {
@IBAction func openMenu(_ sender: UIButton) {
showSideMenu()
}
}
Please, keep in mind, that now you are manipulating with UIViewControllers
instead of MenuItemContentViewControllers
in your HostViewController
class.
- To customize animation you should now update
transitionOptions
property inMenuContainerViewColtroller
class.
override func viewDidLoad() {
super.viewDidLoad()
let screenSize: CGRect = UIScreen.main.bounds
self.transitionOptions = TransitionOptions(duration: 0.4, visibleContentWidth: screenSize.width / 6)
...
}
- Now you have possibility to update customization settings using
viewWillTransition(to:with:)
mehod.
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
var options = TransitionOptions()
options.duration = size.width < size.height ? 0.4 : 0.6
options.visibleContentWidth = size.width / 6
self.transitionOptions = options
}
- Left SideMenu with possibility to customize menu animation and content
- Sample demonstrating using SideMenu library
- README file