InteractiveSideMenu v2.0 Release Notes

Release Date: 2017-06-07 // almost 7 years ago
  • โž• Added

    • ๐Ÿ‘ UITabBarController and UINavigationController menu items support
    • ๐Ÿ‘ Rotation support
    • ๐Ÿ“š Public methods documentation in code
    • ๐Ÿ”„ CHANGELOG file

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ Renamed showMenu()/hideMenu() methods to showSideMenu()/hideSideMenu()
    • Reworked [Sample](./Sample)

    ๐Ÿ›  Fixed

    • Customization of spring animation parameters: [Issue #17]
    • Displaying horizontal images in [Sample](./Sample)

    Migration notes

    • To mark UIViewController as item of SideMenu you should adopt SideMenuItemContent protocol instead of inheritance from MenuItemContentViewController. To show menu you should call showSideMenu() method from this protocol. ```swift 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 in ```MenuContainerViewColtroller``` class.
    ```swift
    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. swift 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 }