Giter VIP home page Giter VIP logo

sscustomsidemenu's Issues

Issue with .compress animation

hi - thank you for making this excellent project!

I'm having an issue with the compress option. it doesn't show the screen image.

iOS 13.4.1
Xcode Version 11.4.1 (11E503a)
iPhone 11 (simulator)

`private func configureSideMenu() {

    self.menuTable.backgroundColor = .clear
    menuTable.separatorStyle = .none
    menuTable.rowHeight = 60
    menuTable.showsHorizontalScrollIndicator = false
    menuTable.showsVerticalScrollIndicator = false
    
    let menuCellConfig = SSMenuCellConfig()
    
    menuCellConfig.cellStyle = .defaultStyle // .customStyle
    menuCellConfig.leftIconPadding = 20
    menuCellConfig.imageToTitlePadding = 10
    menuCellConfig.imageHeight = 24
    menuCellConfig.imageWidth = 24
    
    menuCellConfig.selectedColor = .purple
    menuCellConfig.nonSelectedColor = .label
    
    menuCellConfig.images = [UIImage(named: "first"), UIImage(named: "second"), UIImage(named: "third"), UIImage(named: "logout")]
    menuCellConfig.titles = ["Home", "My Friends", "Settings", "Logout"]
    
    menuCellConfig.numberOfOptions = 4
    menuTable.config = menuCellConfig
    
    let sideMenuConfig = SSSideMenuConfig()
    sideMenuConfig.animationType = .compress(0.8, 20) // .slideIn, .compress(0.8, 20), .slideOut
    sideMenuConfig.sideMenuPlacement = .left // .right, .left
    sideMenuConfig.menuWidth = UIScreen.main.bounds.width * 0.5
    
    let firstViewController = storyboard?.instantiateViewController(withIdentifier: "ViewControllerAbout")
    let secondViewController = storyboard?.instantiateViewController(withIdentifier: "ViewController")
    
    
    sideMenuConfig.viewControllers = [firstViewController!, secondViewController!]
    
    sideMenuConfig.menuTable = menuTable
    self.ssMenuConfig = sideMenuConfig
    
    self.sideMenuDelegate = self
}`

The above code shows a menu, but with a black screen, no image of the underlying screen.

Any ideas?

Show menu slide out on the front

Hi,
I am having an issue when I am trying to open the menu on the front view controller which is not part of the view controllers array of sideMenuConfig.

is there any way I can open the menu on the viewController class that is not part of sideMenuConfig?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.