Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cool stuff #6

Merged
merged 18 commits into from
Nov 17, 2015
Merged

Cool stuff #6

merged 18 commits into from
Nov 17, 2015

Conversation

RamonGilabert
Copy link
Contributor

No description provided.

@RamonGilabert RamonGilabert changed the title [WIP] Cool stuff Cool stuff Nov 17, 2015
@RamonGilabert
Copy link
Contributor Author

So basically by just calling:

let announcement = Announcement(title: "Ramon Gilabert", subtitle: "Vadym Markov just commented your post", image: UIImage(named: "avatar"))
Shout(announcement, to: self)

You have the following result:

screen shot 2015-11-17 at 2 27 21 pm

You can customize the color, fonts, etc. You can also add duration and a custom action if you want, haven't add it here because I don't want to have prints. There'll be stuff that needs improvements, but I think the basis is done.

@vadymmarkov
Copy link
Contributor

Cool story.

let translation = panGestureRecognizer.translationInView(self)
var duration: NSTimeInterval = 0

if panGestureRecognizer.state == .Changed || panGestureRecognizer.state == .Began {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you do [UIGestureRecognizerState.Changed, UIGestureRecognizerState.Began].contains(panGestureRecognizer.state) ?

Or maybe that is just weird 🤔

@RamonGilabert
Copy link
Contributor Author

@zenangst & @vadymmarkov. Done.

zenangst added a commit that referenced this pull request Nov 17, 2015
@zenangst zenangst merged commit 9cbda2b into master Nov 17, 2015
@zenangst zenangst deleted the feature/cool-stuff branch November 17, 2015 14:37
@zenangst
Copy link
Contributor

@RamonGilabert 🍃

@RamonGilabert RamonGilabert restored the feature/cool-stuff branch December 11, 2015 13:19
@RamonGilabert RamonGilabert deleted the feature/cool-stuff branch December 17, 2015 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants