kylegoddard / kgfloatingdrawer Goto Github PK
View Code? Open in Web Editor NEWA floating navigation drawer with an interesting animated presentation written in Swift.
License: MIT License
A floating navigation drawer with an interesting animated presentation written in Swift.
License: MIT License
I'm trying to have 2 screens before my "Main" app. When I use get to my last screen which should be the menu screen, my button refuses to open the leftmenu. However, whenever I set the last screen as my center view, it works fine. Is there any way to use a segue and this repository at the same time? I'm trying to do a selection (school selection) before it goes into the actual main app.
Thanks and great menu!
Not working in iPad
Hi,
I want when side menu open and click on item and go to next view when I put back I go to previous page without load it again. how can i do it?
Thanks
Hi,
I used this library but just one view controller has drawer just for first time and when I go to another page and dismiss that page and go to my main page again drawer not work.
can you tell me about it?
Thanks,
Vafa
Hi there
I'm having an issue where the navigation controller ends up behind the status bar when the status bar is increased in size(typically when in a call or when using the phone as a personal hotspot. The initial change is perfect but once i click the menu button and make a selection, the navigation bar is hidden behind the status bar
any ideas?
I did pod deintegrate and then installed the pod, after that while building the project, I get this error "module file was created by an older version of the compiler; rebuild 'KGFloatingDrawer' and try again: /Users/Sohil_Dedhia/Desktop/Thirpur/Example/build/Debug-iphoneos/Pods-KGFloatingDrawer-Example/KGFloatingDrawer.framework/Modules/KGFloatingDrawer.swiftmodule/x86_64.swiftmodule"
I have done Clean, Clean Build Folder, Deleted DerviedData but still it is giving the same error. Please help
You can use my fork ->
https://github.com/yunustek/KGFloatingDrawer
When I open the Example Project I get this error "No such module KGFloatingDrawer"
I didn't understand the trouble...
Would it be possible to have a pan gesture, to swipe right on the main view to open the drawer?
Looks like the new beta has some errors cropping up. KGDrawerView.swift and KGDrawerViewController.swift do not properly overrider a designated initializer.
Would it be possible to have a pan gesture, to swipe right on the main view to open the drawer? Like in the stock Messages app, when in a message, you can swipe from the left of the screen to get back to the main view.
Hi,
When I open the example project I found some errors related with instance unwrapped "!". As I know the exclamation point is used for unwrap the instance, but I never see the "!" with the "as" like in KGDrawerView(line 215)
var view = self.centerViewContainer.subviews.first as! UIView
Sorry but I am new with swift and can't to figure out the problem, I try to delete the "!" unsuccessfully. I think that KGFloatingDrawer is an amazing component and I would like to use the examples to see the functionality.
Thanks in advance.
when i run KGFloatingDrawer app on my iphone4s,
drawer only show parts of it, about 1/3.
on iphone6 is ok.
simulator iphone4s is also ok.
sorry for my poor english.
Must start by saying awesome component! haven't seen anything that comes close!
However I have experienced some issues and also have a small suggestion that could make a big difference. I have found that I am unable to use popovers, for example when using a standard popover segue to show a popover (of course) on the center vc (I assume this is also the case for the left and right drawer), the popover is shown but its sub-views are not,
the popover's view controller's background color is visible but any other views inc. labels, text fields etc are not visible. This only occurs once the KGFloatingDrawer is added, and once removed the issue no longer exists.
this also occurs when using the "KCFloatingActionButton" component: https://github.com/kciter/KCFloatingActionButton
When i instantiate this as a UIViewController (CenterVC) SubView, the FloatingAction button is visible but when clicked the sub menu are not displayed yet the ViewController dims as normal so believe the submenus are hidden under the KGFloatingDrawer, this might also be the reason for the standard popover. it works fine instantiating the object as a UIWindow Subview, but when the menu opens it stays static (as its a UIWindow Subview) and this is not practical
I believe KGFloatingDrawer is ontop of all other views. is this something that can be fixed?
Also an awesome addition might be to add an override event to catch when the left or right drawer is closing, this would deliver a huge amount of control.
Hello,
i want to show an UIAlertController from my KGFloatingDrawer, but when i click on my item, which must display the alert, it doesn't show anything and if i put my finger once again on the screen the alert appears.
It seems that without touching the screen the app doesn't know "where" to display the alert.
i use self.present(alert, animated: true, completion: nil)
to show my alert from my KGFloatingDrawer
When I first run my app I call one centreViewController with no drawers (Login). Then after login I call a new centreViewController with appDelegate.centerViewController = appDelegate.navigationBarController()
which only works if I restart the app. Am I missing something?
The logout seems fine though appDelegate.centerViewController = appDelegate.drawerSettingsViewController()
which puzzles me a bit because then I think I'm on the right track?
Am I supposed to only use normal segues and such first and then only call the drawerViewController?
The framework installed from cocoapods seems not working well (actually even can't pass the compile)
Could you please add support for Xcode9?
(BTW, the readme.md isn't showing correctly, there should be a space between "#" and the word)
If I let the default settings then it doesn't work, if I codesign pod with my Distribution profile, then due to build identifier it gives error, so I even created a separate provisioning profile but still facing errors. Please help
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[KGFloatingDrawer.KGDrawerViewController centerViewContainerTapped:]: unrecognized selector sent to instance 0x7fa430c24e00'
plz solve this issue ASAP
I noticed that when the left drawer view controller is shown, the top of the view controller is aligned with the scaled top of the center view controller. Is there a way to avoid this behavior so that the top of the left view controller takes up the entire vertical space?
而且还是swift2.0写的,不如看看这个吧?
// 强大的swift3.0版本侧滑全功能、第三方库都满足不了我的要求、谢谢star
https://github.com/lishengbing/swift3.0-XJDragerDemo
Hello,
Nice Library!
Facing a bug while updating the Center ViewController. Steps to reproduce :
Pls. help.
Cheers,
Update : I have currently fixed this by the following modifications :
func replaceViewController(sourceViewController: UIViewController?, destinationViewController: UIViewController, container: UIView) {
* if destinationViewController.view.userInteractionEnabled == false {
destinationViewController.view.userInteractionEnabled = true
}*
( Not sure if it's the best solution) :)
Hi.
This is a simple one to fix for this version of Xcode.
fatal error: init(coder:) has not been implemented: file ./Pods/KGFloatingDrawer/Pod/Classes/KGDrawerViewController.swift, line 29
required public init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
This goes away if I simply add a call to super.init prior to the fatalError:
super.init(coder: aDecoder)
Hi, sorry for the question, You will update the project to latest swift version
Thanks
Alberto
You say you can access the leftDrawerWidth after toggling the drawer but I can't seem to figure out where I should place this code and how? Also was wondering about the height of the centreVC as I wanted it a bit longer when the right drawer is called.
I would use it in one view that is not the mainScreen(in my case one third viewController). Is it possible? I have been tried but I couldn't find out how to do that. The menu just pop up if I use....
window?.rootViewController = drawerViewController
I converted the code to swift 3, fixed any error messages and set up the views and storyboard based on the example.
I can see that the function applyTransforms is being called by when the toggleDrawer is trigger but it doesn't seem to do anything. The animation transform doesn't seem to be doing anything.
Any idea what I can check on this?
I want to use KGFloatingDrawer with Carthage.
Would you plan add support to carthage?
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.