Coder Social home page Coder Social logo

kylegoddard / kgfloatingdrawer Goto Github PK

View Code? Open in Web Editor NEW
499.0 499.0 79.0 8.16 MB

A floating navigation drawer with an interesting animated presentation written in Swift.

License: MIT License

Swift 87.30% Ruby 1.41% C 0.59% Objective-C 2.41% Shell 8.29%

kgfloatingdrawer's People

Contributors

erikluimes avatar kylegoddard avatar moflo avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kgfloatingdrawer's Issues

Menu not opening when pushing with segue

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!

Reload CenterVIewController

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

Drawer Not work on another viewcontroller

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

Navigation bar position for in-call status bar

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?

Module was created by older version of compiler error

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

Add Pan Gesture

Would it be possible to have a pan gesture, to swipe right on the main view to open the drawer?

Version 0.2.0 does not exist

Running pod 'KGFloatingDrawer', '~> 0.2.0' generates an error:

screen shot 2015-10-16 at 9 16 34 pm

Based from tagged version from this repository, version 0.1.3 is the latest.

Pan Gesture

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.

Error before download the KGFloatingDrawer "Expected type after as"

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.

error

Thanks in advance.

drawer size not correct on iphone4s

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.

Popovers not showing

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.

Alert doesn't appear

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

Swapping between centreViewcontrollers?

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?

Add Xcode9 & iOS11 SDK Support?

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)

CodeSign Pod

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

centerviewcontroller tap gesture

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[KGFloatingDrawer.KGDrawerViewController centerViewContainerTapped:]: unrecognized selector sent to instance 0x7fa430c24e00'

plz solve this issue ASAP

Left Drawer View Controller Vertical Alignment

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?

UserInteraction not restored on Center ViewController

Hello,

Nice Library!

Facing a bug while updating the Center ViewController. Steps to reproduce :

  1. Set Left Drawer and Center VC 1.
  2. Open Left Drawer and set VC 2 as Center VC
  3. Without opening the drawer, set VC1 as the Center VC.
    Issue - User-Interaction is disabled on VC1.

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) :)

Xcode 8.1: swift 2.3 issue with

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)

Xcode 8 - Swift 3

Hi, sorry for the question, You will update the project to latest swift version

Thanks
Alberto

How do I set the height of the centreVC and the sidewidths?

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.

How to use the library without window?.rootViewController ?

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

Swift 3

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?

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.