Code Monkey home page Code Monkey logo

spstorkcontroller's People

Contributors

dstranz avatar ilia3546 avatar irskep avatar ivanvorobei avatar izyumkin avatar jobinsjohn avatar kaishin-r 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spstorkcontroller's Issues

Scrollview support

I tried the readme instructions but all I get is a message that SPStoreController cannot be found:

SPStorkController.scrollViewDidScroll(scrollView)

What am I doing wrong?

View controller top position change after dismiss

First of all thanks a lot for this great framework!

I have multiple view controllers using SPStorkTransitioningDelegate on top of each other, but for some reason when I dismiss the child view controller the parent top position will be above the navigation bar.

Scenario:

Parent view controller first view:

File (11)

1- Going to the child view controller code:

let storyboard = UIStoryboard(name: "MyStoryBoard", bundle: nil)
        let ChildVC = storyboard.instantiateViewController(withIdentifier: "ChildVC")
        let transitionDelegate = SPStorkTransitioningDelegate()
        ContactsListVC.transitioningDelegate = transitionDelegate
        ContactsListVC.modalPresentationStyle = .custom
        present(ChildVC, animated: true, completion: nil)

2- Going back to the parent view controller

dismiss(animated: true, completion: nil)

The resulted parent view controller view:

File (13)

It's working fine on other view controllers I have, and tried to figure out the reason for this specific case but I couldn't.

Appreciate your help :)

SPStorkController dismiss delegate method

How we can identify that current Presented SPStorkController controller get dismissed.
somehow the parent controller view will appear method is not calling when dismissed the SPStorkController controller.

Thanks

Indicator duplication

Indicator will be duplicated when controller presented many times,
can you fix this issue as soon as possible :)
Thanks.

indicator

Crash because of symbol not found

Hey there, just updated to 1.5.4 and am getting this crash when calling presentAsStork.

dyld: Symbol not found: _$SSo16UIViewControllerC07SPStorkB0E14presentAsStork_6height13showIndicator11complectionyAB_12CoreGraphics7CGFloatVSgSbyycSgtF
  Referenced from: /Users/luis/Library/Developer/CoreSimulator/Devices/DB5D83A5-6379-41FD-93C4-0CF5FE3CB65D/data/Containers/Bundle/Application/9532DAAE-57AC-4673-AE12-486AE83F7CE0/ChefBelt.app/ChefBelt
  Expected in: /Users/luis/Library/Developer/CoreSimulator/Devices/DB5D83A5-6379-41FD-93C4-0CF5FE3CB65D/data/Containers/Bundle/Application/9532DAAE-57AC-4673-AE12-486AE83F7CE0/ChefBelt.app/Frameworks/SPStorkController.framework/SPStorkController

Any ideas?

Need a event

hello,
I love your lib it's very easy to work with it, I need to handle when the user swipes down the model controller. could you provide some callback event when the user dismisses the model controller by swipe, kindly do needfully.

Indicator Position is Wrong at Navbar

Hi, thanks for this amazing pod, it will be so useful for me :)

It was easy for use, thanks for this too but I have a problem :/

When I present a viewcontroller, position of show/hide indicator at navbar is wrong. I think true position is center of navbar. You can understand what I mean with this photo :

ekran resmi 2018-12-19 04 16 30

Disable swipe to dismiss in UITextView

Hello Ivan, can I disable swipe to dismiss when swiping in UITextView? I mean disable swipe to dismiss for specific view and keep it for other views in the view controller.

Weird issue with UITableView

I am having a weird issue when scrolling. Cells start disappearing when you bounce the view.
From my testing is caused by SPStorkController.scrollViewDidScroll(scrollView) but not sure why yet, is this issue known?

bug

Corner Radius

I would like to change the corner radius for SPStorkController

Compatibility with TableViewController

it looks like that the following method needs to be implemented to work with TableViewControllers and CollectionViewControllers:
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { return true }

Doesn't play nice with black navigation bar(s)

Hi!
First of all thanks for this great library!
I am using cocoapods 1.4.2 and found out that the transition doesn't work right if the source controller is embedded in an navigation controller with barStyle = .black
Most of the times the transition doesn't happen and when it does, it does with significant delay. If the barStyle is default there is no problem.

Presenting in NavigationController hierarchy

HI, I'm trying your pod in my project, and I can't use your presentation style on viewController, which has navigationController.

so UINavigationController -> UIViewController (configure transitionDelegate:SPStorkTransitioningDelegate and etc. like in example) -> present ModalViewController => default presentation style :(

if I try navigationController?.present(controller, animated: true, completion: nil) that also don't work
Any advice? Thank you!

Unable to Use it In Storyboards

I want to use SPStorkController in storyboard via Segues. But I am not be able to do it.
i tried this.

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        let vc = segue.destination
        let transitionDelegate = SPStorkTransitioningDelegate()
        vc.transitioningDelegate = transitionDelegate
        vc.modalPresentationStyle = .custom
    }

In storyborad my segue is kind of presentModally

SPStorkController breaks swipe gestures for UITableViewCell

When I present a UIVewController using SPStorkController it breaks swipe gestures for UITableView rows, I mean swipe to delete gesture or any swipe gesture, the delete option will not appear when you swipe unless your swipe was very very fast, if your swipe was fast then the option will appear, if your swipe was normal the option will not appear, just open your example project and add the following code to enable swipe to delete option and test it.

func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
    }

https://github.com/IvanVorobei/SPStorkController/tree/master/Example

translateForDismiss

Hello

Thanks for making this library. I do not see translateForDismiss when I try to use the library.

It's also not a public var

public var isSwipeToDismissEnabled: Bool = true
public var isTapAroundToDismissEnabled: Bool = true
public var showIndicator: Bool = true
public var indicatorColor: UIColor = UIColor.init(red: 202/255, green: 201/255, blue: 207/255, alpha: 1)
public var customHeight: CGFloat? = nil

Could you tell me what I am missing?

Thanks

Adaptive top hint bar

If the navigation bar color is in dark color, the gray line on the top of it will be not nice.

image

Could it be supported to change to white colour?

[framework] CUIThemeStore: No theme registered with id=0

I got the following errors when using tableview with SPStorkController:

2019-02-16 12:47:27.071021-0500 Test[13833:395395] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x104f1d070] get output frames failed, state 8196
2019-02-16 12:47:27.071418-0500 Test[13833:395395] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x104f1d070] get output frames failed, state 8196
2019-02-16 12:47:27.073086-0500 Test[13833:395395] TIC Read Status [1:0x0]: 1:57
2019-02-16 12:47:27.073655-0500 Test[13833:395395] TIC Read Status [1:0x0]: 1:57
2019-02-16 12:47:28.492863-0500 Test[13833:395207] [framework] CUIThemeStore: No theme registered with id=0

SnapshotController

What's the correct way to delete snapshot ViewController I don't want translate effects

Present as Stork Twice

I am trying to open stork view and this view has delegate to main view. Mainview delegate triggered and I dismiss stork view. Once I try to reopen it, it does not show as stork.

Attaching my test project.

LINK TO TEST PROJECT

SwipeToDismiss, the swipe down distance is too long.

Currently, when swiping/dragging from top to bottom, it is ok to dismiss the controller.

However, when I come across from AppleMusic, I found the distance needed before it can dismiss itself is a bit too long as it affects the UX.

Could you shorten or tune a bit? Or give a option to custom it?

custom height > possible height

Приветствую! Заметил, что при установке высоты (будь то 100, 500 или 200000) нет ограничения по максимальной высоте.

Неплохо было бы сделать проверку если customHeight больше дефолной высоты контейнера для презентации контроллера.

С Уважением, Сергей.

Compile error on SPStorkPresentationController.swift

I've added the pod (version 1.6) and when compiling the app I get a compile error in SPStorkPresentationController.swift.

The error is: Type 'CAMediaTimingFunctionName' (aka 'NSString') has no member 'easeOut'

Thank you!

Unable to install pod

I get this error Unable to find a specification for SPStorkController when put pod install when I try to install this pod on just created project with swift 4.2 why?

Adjust view controller height after turning on personal hotspot

When we present a view controller using SPStorkController then turn on personal hotspot then go back to the app, it will look like this:

IMG_0735

But if we turn on personal hotspot first, then present a view controller using SPStorkController it will look like this:

IMG_0736

Can we fix the issue in the first situation and make it look like the screenshot in the second situation?

isSwipeToDismissEnabled does not work

Look at SPStorkPresentationController class. You use only local var isSwipeToDismissEnabled: Bool = true but isSwipeToDismissEnabled property of transitioningDelegate never used.

As a result, the code has no effect:

let transitionDelegate = SPStorkTransitioningDelegate()
transitionDelegate.isSwipeToDismissEnabled = false

I guess, you should fix it something like this:

if transitioningDelegate?.isSwipeToDismissEnabled ?? isSwipeToDismissEnabled { ...

Not dismissing after scroll

func scrollViewDidScroll(_ scrollView: UIScrollView) {
    SPStorkController.scrollViewDidScroll(scrollView)
}

Adding this code does make it pan with scroll but letting go after pulling down still does not make it dismiss.

App is stuck

Hello thank you so much for great plugin

 let controller = UIViewController()
        controller.transitioningDelegate = SPStorkTransitioningDelegate()
        controller.modalPresentationStyle = .custom
        present(controller, animated: true, completion: nil)

controller.transitioningDelegate = SPStorkTransitioningDelegate(): Instance will be immediately deallocated because property 'transitioningDelegate' is 'weak'

I got app stuck when using this code

thank you

custom height not taken.

I want to give custom height of pop up . previously it was happen but now after update its not found custom height .

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.