simformsolutionspvtltd / sscustomsidemenu Goto Github PK
View Code? Open in Web Editor NEWSide Menu Custom Control for iOS apps
License: MIT License
Side Menu Custom Control for iOS apps
License: MIT License
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?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.