Giter VIP home page Giter VIP logo

saconfettiview's People

Contributors

ahmads avatar asowers1 avatar gmertk avatar shakarang avatar slaunchaman avatar sudeepag 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

saconfettiview's Issues

Contents are hidden during interactive pop gesture

Hi,

I just noticed that the emitter cells are not visible if you push a controller with the confetti view in a navigation controller and use the swipe back gesture. If you use the back button to pop the controller everything is fine.
Do you have any idea why?

Thanks!

How to get Screenshot of this animation.....?

Here is my code.

UIGraphicsBeginImageContextWithOptions(editingView.bounds.size, NO, 0.0);
[editingView drawViewHierarchyInRect:editingView.bounds afterScreenUpdates:NO];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

if i write like this, I am miss snapshot data. If I replace afterScreenUpdates is YES screen is blinking and updating. even i didn't get my desire output. can any one help me on this issue.?

Please update the library

This library is still running on the old Swift code. Please be sure to update the code compatible for new Xcode.

Initial position for confetti

Is it possible to have the confetti drop in from the top when starting? Calling startConfetti() right now just shows a screen with a lot of confetti in random positions, which is pretty jarring. New confetti appear from the top after that, so it would be cool if they initially had the same origin.

Swift 3.1 support

With xcode 8.3 and Swift 3.1 there are two minor build errors that need to be fixed as M_PI and M_PI_4 are deprecated.

In SAConfettiView.swift simply update:

confetti.emissionLongitude = CGFloat(M_PI)
confetti.emissionRange = CGFloat(M_PI_4)

to:

confetti.emissionLongitude = CGFloat(Double.pi)
confetti.emissionRange = CGFloat(Double.pi/4)

Symbol(s) not found for architecture i386

Getting this error on iPhone 5 & 4S; non-64 bit devices. Using Cocoapods.

Undefined symbols for architecture i386:
  "SAConfettiView.SAConfettiView.__allocating_init (SAConfettiView.SAConfettiView.Type)(frame : __C.CGRect) -> SAConfettiView.SAConfettiView", referenced from:
      AppName.FirstViewController.(functionName (AppName.FirstViewController) -> (Swift.Int, showBigIndicator : Swift.Bool) -> ()).(closure #1).(closure #1) in FirstViewController.o
  "type metadata accessor for SAConfettiView.SAConfettiView", referenced from:
      AppName.FirstViewController.(functionName (AppName.FirstViewController) -> (Swift.Int, showBigIndicator : Swift.Bool) -> ()).(closure #1).(closure #1) in FirstViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Swift 3 Compatibility

Just wondering when you would be Swift 3 ready. I'd love to help if you are too busy to update this Cocoapod.

Use the view width instead of x position

Maybe better to use the view width instead of the view x position for the emitter position.

Because with the x position there is a bug when the confettiView is add in a scrollview.

Add support for multiple images and emojis

I'm working on a fork that adds three new types: .images, .emoji, and .emojis. If there's any interest, I can open a PR -- let me know if so!

In the spirit of the this repo's demos, here's a (albeit low-quality) gif :

emoji_multi_image_confetti

Path return nil when class added manually

    let path = NSBundle(forClass: SAConfettiView.self).pathForResource("SAConfettiView", ofType: "bundle")

    let bundle = NSBundle(path: path!)

the path is nil so the unwrapping crashes. I add the SAConfettiView.swift manually into my project.

Awesome BUT...

I added the SAConfettiView.swift to my project manually but when i run it the screen freezes on me.. i have it setup in a segmented control so i only want the animation to show up in one of the 3 tabs in my segmented control. any idea?

Using pod from Obj-C

Hello
I am using this pod from an Obj-C project. Everything fine but I cannot access two public properties and I do not know why.
Here they are:

public var intensity: Float!
public var type: ConfettiType!

Could you please help me?
Thanks.

Installing Manually

You have to change the get image method because it doesn't support your bundle.... I fixed it but still.

Swift 3

Time to merge the Swift 3 pull request :)

App crashing due to path = nil

let path = Bundle.main.path(forResource: "SAConfettiView", ofType: "bundle")

let bundle = Bundle(path: path!)

How do I fix this!?

Confetti doesn't stop

Hello! I love this effect–great job! I use this pod In my Obj-C app, and when I call

[_confettiView stopConfetti];

The confetti doesn't stop. I tried putting it in viewDidLoad, but it still didn't work. Any ideas? Thank you!

Preventing color overlay on custom image

If I am using a custom image, which has it's own colors already, is there a way to prevent adding colors on top of that?

If I use clear color it is invisible. If I use an empty array it is also invisible.

cocoapods update

Would you like to update cocoapods

Even if it corresponds to swift 4 as it is, it can not be used with cocoapods.

Update Pod version

It looks like the changes for Swift 4 compatibility have been merged in a PR, but right now running pod install will result in version 0.1.8 being installed, which doesn't have the Swift 4 compatibility.

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.