Git Product home page Git Product logo

mzformsheetpresentationcontroller's People

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

mzformsheetpresentationcontroller's Issues

Center not work

I Love MZFormSheetPresentationController !!! =)

But I was not happy with the location of the Pop-up'a. It is located just below the Navigation Controller'a. All attempts to move it to the center of the screen does not lead to any success.

My code:

LikeChoiceNavigationController *choiceNavigationController = [STORYBOARD instantiateViewControllerWithIdentifier:@"LikeChoiceNavigationController"];

MZFormSheetPresentationController *formSheetController = [[MZFormSheetPresentationController alloc] initWithContentViewController:choiceNavigationController];

formSheetController.contentViewSize = CGSizeMake(280, 320);
formSheetController.shouldDismissOnBackgroundViewTap = YES;
formSheetController.shouldCenterVertically = YES;
formSheetController.contentViewControllerTransitionStyle = MZFormSheetTransitionStyleBounce;

[navigationController presentViewController:formSheetController animated:YES completion:nil];

Init content with Navigation Controller with Root from Viewcontroller (Nib nor Storyboard)

I'm using view controller which using nib to as root controller of UINavigationController. Then I use MZFormSheetController to display this navigation controller. But the problem is when I need push a new view controller to this navigation controller, the modal view is disappear (the only left is blur screen). But by your example, I see that you instantiate from storyboard with exist push segue from vc1 -> vc2. So how I can resolve this problem? Any help is really appreciate. Thank in advance. The code like this:

Init by navigation controller (with root controller is orderViewController):

modalNavController = [[UINavigationController alloc] initWithRootViewController:self.orderViewController];
modalNavController.navigationBarHidden = YES;
[self initMZPresentationControllerWith:modalNavController];

Then, I want to push vc 2 to this navigation controller:
OptionsDetailViewController *optionsDetailVC = [[OptionsDetailViewController alloc] init];
optionsDetailVC.options = dishOptions;
[self.orderViewController.navigationController pushViewController:optionsDetailVC animated:YES];

I tap on cell to push new view controller.By this the modal view is disappear and the rest of it is blur screen. (Figure below)
screen shot 2015-10-10 at 7 47 32 am

interactivePanGestureDissmisalDireciton retains Content View Controller

Hey!

Awesome work here.

Be careful that setting interactivePanGestureDissmisalDireciton is retaining the controller presented and do never dealloc.

I solved by adding this in viewDidDissapear

    [self removeEdgeDismissalPanGestureRecognizer];
    [self removePresentaingViewDismissalPanGestureRecognizer];

Best

support iOS 7?

does this support iOS 7? running the example on a iPhone 4 iOS 7.x, I got this
screen shot 2015-07-23 at 4 48 30 pm

Animating changes in contentViewFrameForPresentationController

When I add cells into my table view, I am able to correctly use

- (CGRect)contentViewFrameForPresentationController:(MZFormSheetPresentationController *)presentationController currentFrame:(CGRect)currentFrame

to make the change in height. However, its a little abrupt. I was hoping to be able to animate the change in height? Is that possible? I'm combed the source code but can't find anything.

MZAppearance/MZAppearance.h' file not found

I am getting this error while importing into my xcode. I have imported swift project.

/Users/myname/Downloads/MZFormSheetPresentationController-master/MZFormSheetPresentationController/MZFormSheetPresentationController.h:27:9: error: 'MZAppearance/MZAppearance.h' file not found

import <MZAppearance/MZAppearance.h>

    ^

:0: error: failed to import bridging header '/Users/myname/Downloads/MZFormSheetPresentationController-master/MZFormSheetPresentationController/MZFormSheetPresentationController Swift Example-Bridging-Header.h'

Please tell me how can I resolve this issue ?

Pod Install Failing specifically on this repo

Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:

- `MZFormSheetPresentationController (= 1.1.1)` required by `Podfile`

/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/resolver.rb:388:in `handle_resolver_error'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/resolver.rb:69:in `rescue in resolve'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/resolver.rb:56:in `resolve'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer/analyzer.rb:535:in `block in resolve_dependencies'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/user_interface.rb:59:in `section'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer/analyzer.rb:533:in `resolve_dependencies'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer/analyzer.rb:70:in `analyze'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer.rb:209:in `analyze'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer.rb:131:in `block in resolve_dependencies'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/user_interface.rb:59:in `section'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer.rb:130:in `resolve_dependencies'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/installer.rb:103:in `install!'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/command/project.rb:101:in `run'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/lib/cocoapods/command.rb:48:in `run'
/Users/btate/.rvm/gems/ruby-2.2.1/gems/cocoapods-0.38.1/bin/pod:44:in `<top (required)>'
/Users/btate/.rvm/gems/ruby-2.2.1/bin/pod:23:in `load'
/Users/btate/.rvm/gems/ruby-2.2.1/bin/pod:23:in `<main>'
/Users/btate/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/Users/btate/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'

Cocoa pod supported?

I am confused on what I need to install/copy to use this. I downloaded the example project and I see two pod dependencies.

'MZFormSheetPresentationViewController' has no member 'shouldApplyBackgroundBlurEffect'

Error:

Value of type 'MZFormSheetPresentationViewController' has no member 'shouldApplyBackgroundBlurEffect'

Code:

        let controller = self.storyboard!.instantiateViewControllerWithIdentifier("addArticleToGroup") as! AddArticleToGroupViewController
        controller.group = data
        let formSheetController = MZFormSheetPresentationViewController(contentViewController: controller)
        formSheetController.shouldApplyBackgroundBlurEffect = true // error here
        self.presentViewController(formSheetController, animated: true, completion: nil)

Update README

The latest version of MZFormSheetPresentationController subclasses UIPresentationController but it's not clear how it's intended to be used.

Some demo code would be great!

contentViewSize not working on iPad

Everything is working perfectly on iPhone... but I can't get the right frame on iPad (portrait and landscape). It's exactly the same code for the both platform:

    [[MZFormSheetPresentationController appearance] setShouldApplyBackgroundBlurEffect:YES];
    [[MZFormSheetPresentationController appearance] setBlurEffectStyle:UIBlurEffectStyleDark];

    KFPurchasePassViewController *purchasePassVC = [[KFPurchasePassViewController alloc] initWithNibName:@"KFPurchasePassViewController" bundle:nil];
    MZFormSheetPresentationViewController *formSheetController = [[MZFormSheetPresentationViewController alloc] initWithContentViewController:purchasePassVC];
    formSheetController.presentationController.contentViewSize = CGSizeMake(300.f, 426.f);
    formSheetController.contentViewControllerTransitionStyle = MZFormSheetPresentationTransitionStyleDropDown;
    formSheetController.presentationController.shouldCenterVertically = YES;
    formSheetController.presentationController.shouldDismissOnBackgroundViewTap = YES;    
    [self presentViewController:formSheetController animated:YES completion:nil];

The KFPurchasePassViewController is using a xib, but the contraints are the same for iPhone and iPad.

simulator screen shot 12 nov 2015 10 07 32

So, as we can see on the screenshots, the frame isn't the right one, the width is larger....
Any ideas why I'm getting this? Did I miss something?

Autoresizing breaking autolayout constraints to container view

As depicts in the screenshots below, the uiviewcontroller seems to ignore the constraints for leading and trailing space. Everything is working fine after i disable autolayout it seems. Perhaps it could be caused by UIViewAutoResizing__

  1. Constraints set for top, left, right
    screen shot 2015-07-29 at 3 33 45 pm
  2. Landscape
    screen shot 2015-07-29 at 3 36 40 pm
    3.Potrait
    screen shot 2015-07-29 at 3 36 57 pm

Callbacks based on interactivePanGestureDissmisalDirection

Is it possible to provide different callbacks for each direction that a user could swipe the view? I would like to implement functionality that would dismiss the view if swiped down, but save some entered information if swiped up.

Thanks.

Touch transparent background

Thanks for the great library. In the older MZFormSheetController you included support for touch transparent backgrounds using formSheet.formSheetWindow.transparentTouchEnabled = YES. Is this behavior supported in MZFormSheetPresentationController?

presenting another view?

If I present an MZFormSheet, and then present another view using the MZFormSheet, the MZFormSheet dismisses itself. Is there a way to prevent this?

EDIT: It doesn't actually dismiss itself, but the dismiss animation is performed.

Swipe to close the modal

While I'm at it, is there any way to dismiss the modals by swiping down on the navigation bar of a modally presented view (you know, like the mail app modals).

iOS 9 autolayout on custom sizing view

Thanks for great library and excellent support.

But in iOS9, the autolayout looks broken (look at the textview) especially on the second view. This problem occurs once I upgraded my device to iOS9 (I tested it in simulator), and it fix itself after some event like rotating device or drag the view around (like you want to close it). Any explanation?

image

Thanks

How to make the modal background transparent.

Is there a way to present a modal that instead of having a white background as it is by default. It has a transparent or blurred background ? currently the blurred option in MZ just blurs the outside background of the modal.

I intent to have a ViewController that is showing a camera feed, and I would like to present a modal on top of that, with blurred background so I can still see the camera refreshing in the back.

Text size based on size class

In one of my VC's that I am displaying with MZFormSheetPresentationController, I have a label whose font is based on the devices size class. However, when the form sheet is displayed the font size does not change based on the content size of the form sheet. How can I change this?

Cocoapods install fails

It looks like the updated podspec file is not tagged for the latest version.

Not sure if that is the only problem, but we get the following every time we try to install this pod:

[!] Unable to satisfy the following requirements:

- `MZFormSheetPresentationController (~> 2.1.3)` required by `Podfile`

Autolayout buttons

I am having an issue displaying a formsheet with 2 buttons vertically spaced (evenly, centered horizontally). I want the buttons to have a minimum height of 50 each. I cannot seem to accomplish this in a formsheet with the default size. Each time I run I get a message saying all constraints cannot be satisfied. Can you lead me in the right direction/post a sample project of how I can display these buttons in the formsheet?

Question with autolayout: adaptative size

Hello,

First, thank you for this library.
I have a question regarding its use with autolayout.

I don't see how to go around the contentViewSize of MZFormSheetPresentationController in order to let autolayout handle the sizes.

Example 1: I have a view with a label, text = "hello world". I pin the label to the its superview edges. So I expect the presented view to have a small size.

Example 2: I want the width of my view to be 80% of the screen.

Thanks!

Changing transition style after presenting not working

Hi;

In MZFormSheetController by changing transition style after presenting the formSheet I can achieve come and go style animations.

For example the below example should come from right of the screen and leaving from left. But in MZFormSheetPresentationController changing transition style not working as before.

    _formPresentSheet.contentViewControllerTransitionStyle = MZFormSheetPresentationTransitionStyleSlideAndBounceFromRight;

    [fromVC presentViewController:_formPresentSheet animated:YES completion:^{
            _formPresentSheet.contentViewControllerTransitionStyle = MZFormSheetPresentationTransitionStylelideAndBounceFromLeft;                
    }];

I wanna achieve this transition. If this is not possible I think I should use custom transitions. I tried it and could not manage to work it out. If there is a way to do it as I was doing before it would be very handy, if not can you show me a way how to achieve it?

Also MZFormSheetPresentationTransitionStylelideAndBounceFromLeft is misspelled.

imported but MZAppearance/MZAppearance file not found

Getting this error when included these lines in header file:

#import "MZFormSheetPresentationController.h"
#import "MZFormSheetPresentationControllerSegue.h"

error:

MZFormSheetPresentationController/MZFormSheetPresentationController.h:28:9: 'MZAppearance/MZAppearance.h' file not found

Swipe to go back

I love your lib - the simplicity in how to use it and how great it looks is just amazing. So first of all, thanks for that :)

However, I noticed that you cannot perform a left screen edge swipe to go back up the navigation stack. Do you have any idea how to solve this?

Setting PortraitTopInset has no effect.

I've noticed that setting the PortraitTopInset doesn't seem to have any effect. Had to manually change the default value in MZFormSheetPresentationController.m

Update contentSize when rotation

Hi ! Thanks for this great library !

I just wanted to know how do you update the frame of the content when the rotate the device ?

Indeed I saw on the 2.0.0 changelog this line:
"Added frame configuration handler which allow you to change frame during rotation and animations"

But no way to see how we can handle this.

Thanks again !

Transitions Using Storyboard

If i want to use a different transition using storyboard and segues, how and where would I specify that in the code? If its even possible?

Thank you!

Rotation issue. Happens starting from 2.0+. Reproducible on iOS 8&9

Hi :) unfortunately, i've faced small issue with your awesome library.

If MZFormSheetPresentationController is presenting any controller (in my case it's alert view), than origin of it's content view is calculated wrong during transition to another size/size class.

Steps:

  1. Launch sample project.
  2. Present popover
  3. Present alert
  4. Rotate to landscape (or you can present in landscape and rotate to portrait)
  5. Observer results

I see this results since MZFormSheet started to use UIPresentationController API. So here comes the question: is that me doing something wrong or we have a bug?

Thanks for help! Ping me if you will need additional info.

Sample code can be found here in master branch: https://github.com/Austinate/MZFormSheetIssueSample

Normal result:
simulator screen shot 28 2015 11 45 43

Buggy result:
simulator screen shot 28 2015 11 45 36

Bug in your project

Hi i downloaded your project to test it out, unfortunately when i tried to compile it i ran into a bug, this is the error:
ld: library not found for -lPods-MZAppearance
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i hope to be able to test it soon

Vertical center

I get the same position no matter of the value assigned to shouldCenterVertically.

Swift example not building

https://github.com/m1entus/MZFormSheetPresentationController/tree/master/Example/Swift isn't building with XCode 7. Any suggestions?

CompileSwift normal i386 /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/CustomTransition.swift
cd /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c "/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/TransparentViewController.swift" "/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/ViewController.swift" -primary-file "/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/CustomTransition.swift" "/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/AppDelegate.swift" "/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/PresentedTableViewController.swift" -target i386-apple-ios8.3 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator -F /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator -F /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator/Pods -g -import-objc-header "/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/MZFormSheetPresentationController/MZFormSheetPresentationController Swift Example-Bridging-Header.h" -module-cache-path /Users/vamsee/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc "-I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/swift-overrides.hmap" -Xcc -iquote -Xcc "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-generated-files.hmap" -Xcc "-I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-own-target-headers.hmap" -Xcc "-I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-all-non-framework-target-headers.hmap" -Xcc -ivfsoverlay -Xcc "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/all-product-headers.yaml" -Xcc -iquote -Xcc "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-project-headers.hmap" -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator/include -Xcc "-I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/DerivedSources/i386" -Xcc "-I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/DerivedSources" -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift -emit-module-doc-path "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransitionpartial.swiftdoc" -Onone -module-name MZFormSheetPresentationController_Swift_Example -emit-module-path "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransitionpartial.swiftmodule" -serialize-diagnostics-path "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.dia" -emit-dependencies-path "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.d" -emit-reference-dependencies-path "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.swiftdeps" -o "/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.o"

0 swift 0x000000010c5d910b llvm::sys::PrintStackTrace(sFILE) + 43
1 swift 0x000000010c5d984b SignalHandler(int) + 379
2 libsystem_platform.dylib 0x00007fff8edc4f1a sigtramp + 26
3 swift 0x000000010c487833 (anonymous namespace)::Verifier::visitInstruction(llvm::Instruction&) + 6275
4 swift 0x000000010c4847ce llvm::InstVisitor<(anonymous namespace)::Verifier, void>::visit(llvm::Instruction&) + 2782
5 swift 0x000000010c47b9a9 (anonymous namespace)::Verifier::verify(llvm::Function const&) + 2153
6 swift 0x000000010c48de32 (anonymous namespace)::VerifierLegacyPass::runOnFunction(llvm::Function&) + 18
7 swift 0x000000010c44ba56 llvm::FPPassManager::runOnFunction(llvm::Function&) + 294
8 swift 0x000000010c44b49d llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 189
9 swift 0x000000010a7e1d67 performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine&, llvm::sys::SmartMutex
, llvm::Module
, llvm::TargetMachine_, llvm::StringRef) + 759
10 swift 0x000000010a7e0d8b performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl_, swift::SILModule_, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile_, unsigned int) + 1547
11 swift 0x000000010a7e0f10 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule_, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 64
12 swift 0x000000010a6e82e8 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 13704
13 swift 0x000000010a6e4b4a frontend_main(llvm::ArrayRef<char const*>, char const_, void_) + 2682
14 swift 0x000000010a6e11d7 main + 2247
15 libdyld.dylib 0x00007fff8ec0b5c9 start + 1
Stack dump:
0. Program arguments: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/TransparentViewController.swift /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/ViewController.swift -primary-file /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/CustomTransition.swift /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/AppDelegate.swift /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift/MZFormSheetPresentationController Swift Example/PresentedTableViewController.swift -target i386-apple-ios8.3 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator -F /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator -F /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator/Pods -g -import-objc-header /Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/MZFormSheetPresentationController/MZFormSheetPresentationController Swift Example-Bridging-Header.h -module-cache-path /Users/vamsee/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-generated-files.hmap -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-own-target-headers.hmap -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/MZFormSheetPresentationController Swift Example-project-headers.hmap -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/DerivedSources/i386 -Xcc -I/Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/vamsee/Development/git/iOS/MZFormSheetPresentationController/Example/Swift -emit-module-doc-path /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransitionpartial.swiftdoc -Onone -module-name MZFormSheetPresentationController_Swift_Example -emit-module-path /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransitionpartial.swiftmodule -serialize-diagnostics-path /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.dia -emit-dependencies-path /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.d -emit-reference-dependencies-path /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.swiftdeps -o /Users/vamsee/Library/Developer/Xcode/DerivedData/MZFormSheetPresentationController_Swift_Example-dwwmcdxoqyjhxdcsrnbcroikvtir/Build/Intermediates/MZFormSheetPresentationController Swift Example.build/Debug-iphonesimulator/MZFormSheetPresentationController Swift Example.build/Objects-normal/i386/CustomTransition.o

  1. Running pass 'Module Verifier' on function '@TFC47MZFormSheetPresentationController_Swift_Example16CustomTransition34entryFormSheetControllerTransitionfS0_FTCSo33MZFormSheetPresentationController17completionHandlerFT_T__T'

Command failed due to signal: Segmentation fault: 11

Background turns light grey instead of blurred?

Hi,

I have exactly the same issue that I have with MZFormSheetController.

https://github.com/m1entus/MZFormSheetController/issues/182

I've adding my viewcontroller to my navigation controller programmatically, rather than with my storyboard, although I don't know why that should make a difference.

I now have.

Any ideas?

UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];

nav.navigationBarHidden = YES;

MZFormSheetPresentationController *formSheetController = 
    [[MZFormSheetPresentationController alloc] 
     initWithContentViewController:nav];
formSheetController.shouldApplyBackgroundBlurEffect = YES;
formSheetController.blurEffectStyle = UIBlurEffectStyleExtraLight;
// To set blur effect color, but uglty animation
//    formSheetController.backgroundColor = [[UIColor redColor] colorWithAlphaComponent:0.8];

[self presentViewController:formSheetController animated:YES completion:nil];


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.