dogo / aksidemenu Goto Github PK
View Code? Open in Web Editor NEWBeautiful iOS side menu library with parallax effect. Written in Swift
License: MIT License
Beautiful iOS side menu library with parallax effect. Written in Swift
License: MIT License
iPhone X
Result and crash: http://i.hizliresim.com/BLPoRM.png
Code screen: http://i.hizliresim.com/4arYZ7.png
1.4.3
All versions
All devices
After hide animation is finished debugger should stop at breakpoint or write in console message that we put inside print() function.
func sideMenu(_ sideMenu: AKSideMenu, willHideMenuViewController menuViewController: UIViewController) is called twice instead once. Investigating in code I saw that inside AKSideMenu.swift (line 442) willHideMenuViewController is called instead of didHideMenuViewController inside completion block.
Please call didHideMenuViewController in completion block. If needed I can do thing through pull request.
Hi
When will you update to Swift 3?
shadow is not visible
I also write the following code in RootViewController
self.contentViewShadowColor = .black
self.contentViewShadowOffset = CGSize(width: 2, height: 2)
self.contentViewShadowOpacity = 0.6
self.contentViewShadowRadius = 12
self.contentViewShadowEnabled = true
self.backgroundImage = nil
could anyone help me to bring out me from this issue?
Hello again guy,
Do you have a similar component written on Objective C.
Thanks a lot
1.3.3
10.1
iPhone 6
The status bar will disappear by showing the left side menu. If I enable scaleContentView (default it's true) the status bar will hide.
The status bar doesn't disappear by showing the left side menu
override open var prefersStatusBarHidden: Bool {
var statusBarHidden: Bool = false
statusBarHidden = self.visible ? self.menuPrefersStatusBarHidden : self.contentViewController!.prefersStatusBarHidden
if self.contentViewContainer.frame.origin.y > 10 {
statusBarHidden = self.menuPrefersStatusBarHidden
} else {
statusBarHidden = self.contentViewController!.prefersStatusBarHidden
}
return statusBarHidden
}
You should change this if condition: if self.contentViewContainer.frame.origin.y > 10
to if self.contentViewContainer.frame.origin.x > 10
. Also, you should fix this if condition in override open var preferredStatusBarUpdateAnimation: UIStatusBarAnimation
and override open var preferredStatusBarStyle: UIStatusBarStyle
Hey everyone, i would like to implement this only one class and i don't want to use storyboard version. Because i will show the same class every time when one of menu items picked.
If i use storyboard i have to add segue to class and it will initialise same class every time.
I just want to implement this not in appDelegate but in one of classes in navigationController and when user taps any menu item i will hide menu, change dataSource and show same class again.
I tried it like this but it just freezes when i tap the button.
- let leftMenuViewController: LeftMenuViewController = LeftMenuViewController()
- let sideMenuViewController: AKSideMenu = AKSideMenu()
- sideMenuViewController.contentViewController = self.navigationController
- sideMenuViewController.leftMenuViewController = leftMenuViewController
- sideMenuViewController.backgroundImage = UIImage(named: "general_bg_small.png")!
- sideMenuViewController.menuPreferredStatusBarStyle = UIStatusBarStyle.LightContent
- sideMenuViewController.delegate = self
- sideMenuViewController.contentViewShadowColor = UIColor.blackColor()
- sideMenuViewController.contentViewShadowOffset = CGSizeMake(0, 0)
- sideMenuViewController.contentViewShadowOpacity = 0.6
- sideMenuViewController.contentViewShadowRadius = 12
- sideMenuViewController.contentViewShadowEnabled = true
- let leftButton = UIBarButtonItem(image: UIImage(named: "menu_menu_icon"), landscapeImagePhone: UIImage(named: "menu_menu_icon"), style: .Plain, target: self, action: #selector(self.presentLeftMenuViewController(_:)))
- self.navigationItem.leftBarButtonItem = leftButton
1.3.5
11
iPhone X
Please maintenance for swift 4 support,
I could help if you guys want.
1.0.0
6.0
iPhone 5
1.4.1
11.0
iPhone 6s
position/frame (width & height) of content View controller when side menu is opened
If in a viewController I access the defined in the UIViewController extension, the app freezes
self.sidemenuViewController
This happens if the side menu is not in the view Heirarchy. The app goes into an infinite loop and app freezes.
1.0.0
6.0
iPhone 6
The property should return nil instead of going into an infinite while loop.
The app goes into an infinite while loop.
1.4.2
12.0
iPhone 6s
swipe and release before fully open must be close or open side menu
menu stuck in the middle of swiping
make sidemenu full open or close depends of percentage of swipe to full open
Hi, I want to use AKSideMenu only at the left side (there is burger menu in my application), but the empty right view controller still showing when I slide from right side to left. How can I turn off the right view controller? Thanks.
1.0.0
12.1
iPhone X
First, congratulations on this wonderful lib.
I would like to know if there is any possibility of adding a cornerRadius in the contentView.
Thanks
Hello,
I want to disable interactivePopGestureRecognizer.
iPhone 6s
here i attach my screen image in which side menu is opening from left side and if you zoom image you will able to see space at top right and left corner
Hi
I want to pass an object(Customer) from RootViewController into contentViewController but I can`t do that.
import UIKit
import AKSideMenu
public class RootViewController: AKSideMenu, AKSideMenuDelegate {
var customer:Customer = Customer()
override public func awakeFromNib() {
super.awakeFromNib()
self.menuPreferredStatusBarStyle = .lightContent
self.contentViewShadowColor = .black
self.contentViewShadowOffset = CGSize(width: 0, height: 0)
self.contentViewShadowOpacity = 0.6
self.contentViewShadowRadius = 12
self.contentViewShadowEnabled = true
self.backgroundImage = UIImage(named: "sideMenuBackground")
self.delegate = self
if let storyboard = self.storyboard {
self.contentViewController = storyboard.instantiateViewController(withIdentifier: "contentViewController")
self.rightMenuViewController = storyboard.instantiateViewController(withIdentifier: "rightMenuViewController")
}
}
// MARK: - <AKSideMenuDelegate>
public func sideMenu(_ sideMenu: AKSideMenu, willShowMenuViewController menuViewController: UIViewController) {
print("willShowMenuViewController")
}
public func sideMenu(_ sideMenu: AKSideMenu, didShowMenuViewController menuViewController: UIViewController) {
print("didShowMenuViewController")
}
public func sideMenu(_ sideMenu: AKSideMenu, willHideMenuViewController menuViewController: UIViewController) {
print("willHideMenuViewController")
}
public func sideMenu(_ sideMenu: AKSideMenu, didHideMenuViewController menuViewController: UIViewController) {
print("didHideMenuViewController")
}
}
Thanks
1.0.0
6.0
iPhone 6
Memory should be manage itself
Memory increase unexpectedly while we have used side menu for navigation
You should provide the array of content vc in side menu controller
1.4.0
11.0.1
iPhone 7
I expected to have the NavigationBar at the top of the scaled ViewController without any white space on top of it.
There is a gap between the top of the View an NavigationBar. Setting prefersStatusBarHidden to true or false has no effect regarding this issue. (See following screenshot)
Hi, i just want to know how can i achieve shadow and corner radius at same time in the contentviewcontroller. I tried to play with the values you have tried, still not able to achieve what i actually want.
Thanks for the beautiful library.
1.3.5
10.3.2
iPhone 6 Plus
MKMapView
inside the contentViewController
of the AKSideMenu
.MKMapView
scroll.Simultaneously recognized UIPanGestureRecognizer
. Enabled pan capability for contentViewController
with gestureRecognizers
inside.
Pan gestures of side menu is not working simultaneously with other gesture recognizers.
Implementing the optional delegate methods of UIGestureRecognizerDelegate
to support multiple gesture recognizers and addition of custom properties for behaviour customization.
1.3.5
12.1
iPad Pro
Using code:
self.sideMenuViewController!.navigationController?.pushViewController(eventVC, animated: true)
self.sideMenuViewController!.hideMenuViewController()
Left menu hides and new view is pushed onto navigation stack
Left menu closes
1.0.0
12.0
iPhone 8
How can i add right side menu images??
1.0.0
11.4
iPhone 8 Plus
successfully build.
not able to build the project.
can you please solve it.
1.3.5
10.3
iPhone 6
I should use unwind segue in my app or dissmiss viewController.i am using this code for ViewController transition.
self.sideMenuViewController!.setContentViewController(UINavigationController.init(rootViewController: self.storyboard!.instantiateViewController(withIdentifier: "HighScoreControllerID")), animated: true) self.sideMenuViewController!.hideMenuViewController()
i want to go back with unwind segue. But it is not working. i have tried normal segue then unwind segue is working. Help please
1.4.1
12.0
iPhone 7
backgroundImage
propertyImage should be visible.
How we can change left menu controller width?
when scale content viewcontroller, a white bar appears on the navigation bar
1.0.0
6.0
iPhone 6
1.0.0
6.0
iPhone 6
Normal flow
App UI freezing
I debugged the view and found a uibutton laying on my whole UI window as has been added from nowhere, I didn’t have this issue before using the pod, so I think it’s somehow added wrongly
How to pop view controller when we switched from menu view controller using following code?
self.sideMenuViewController!.setContentViewController(viewController, animated: true)
self.sideMenuViewController!.hideMenuViewController()
1.0.0
11.0
iPhone 8
I have login view at the start, now when I get the response I wanted to show the HomeViewController with the Menu Button On the left side and on click of the menu shows the menu and navigate the user to the particular view controller.
Currently, If I create rootViewController and set the Initial view to rootviewcontroller and follow the procedure then I am able to see the menu and move to other screen. But, If I tried to push rootViewController from login to show the homeVIewcontroller then I am not able to see the menu.
Please help me to understand, How I can Show HomeViewController from LoginViewController? Do I need to push the RootViewController and In rootViewController set the contentViewController as HomeViewController?
in the awakeFromNib i have:
self.contentViewController = self.storyboard!.instantiateViewController(withIdentifier: "ContentViewController")
self.leftMenuViewController = self.storyboard!.instantiateViewController(withIdentifier: "LeftMenuViewController")
self.rightMenuViewController = nil
this provokes an exception in showLeftMenuViewController() line 288
self.rightMenuViewController!.view.isHidden = true
accordingly to the declaration is an optional property so it can be nil
var rightMenuViewController: UIViewController?
thanks
1.4.0
11.1
iPhone 7
The ContentViewContainer should be visible on the right side.
It looks like the ContentViewContainer is rotating out of the right bound of the screen. All steps can be repeated as often as you want to reproduce this issue.
Is there a way to fix that?
Hi I use a AKSideMenu controller as my root vc. I have an issue with modals because if I present a modal over it I can't use the SideMenu property and If I the the presenting vc I got the AKSideMenu which don't have a side menu it self.
TL;DR It would be great that the side menu can use it own side menu property !
Hello,,, Every one
I want to decrease size of Content View which contains menu button .. I have tried all property but It's not decreased.
Example :
When i press menu button on HomeViewController (e.g. "Left") that view more decreased and show full menu (e.g just display only menu button of Homeviewcontroller)
Hmmm... I have just now noticed you asked me to check the develop branch on #16.
I am seeing code ala:
if optional == nil { return }
// and then using optional! (explicitly unwrapped)
... which concerns me a bit. Since I am back here looking at issues because I have had another !-related crash. :)
I am willing to arrange the code to avoid using explicitly unwrapped optionals and use lets and guards instead unless you would rather do it yourself or do something different to avoid crashing. What do you think?
1.4.3
12.0
iPhone X
willHideMenuViewController delegate is being called instead of didHideMenuViewController.
1.0.0
6.0
iPhone 6
1.0.0
6.0
iPhone 6
1.3.5
11.0
iPhone 7
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
return true
}
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
if (editingStyle == UITableViewCellEditingStyle.delete) {
tableView.beginUpdates()
print("deleting")
tableView.endUpdates()
}
}
TableViewCell action should appear
rootViewController appears
property from rightviewController to deactivate swiping
(based on your Demo App)
Can you improvise the code to make right side menu to be optional? At present we have to enter Right side and left Side view controllers while initializing AKSideMenu.
Would be great if we make both as optional.
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.