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

How to change Shout color #26

Closed
seapy opened this issue Dec 30, 2015 · 5 comments
Closed

How to change Shout color #26

seapy opened this issue Dec 30, 2015 · 5 comments

Comments

@seapy
Copy link

seapy commented Dec 30, 2015

Shout color change is possible?

@zenangst
Copy link
Contributor

Hey @seapy, Shout's use the ColorList for configuration.
ColorList.Shout.background is a static variable so you are able to configure it to what ever color you want. It defaults to UIColor.whiteColor().

ColorList.Shout.backgroundColor = UIColor.greenColor()

Let us know how it goes and thanks for using Whisper 😎

@seapy
Copy link
Author

seapy commented Dec 30, 2015

@zenangst i try under the code in demo, but color not expected color

let announcement = Announcement(title: "Ramon Gilabert", subtitle: "Vadym Markov just commented your post", image: UIImage(named: "avatar"))
ColorList.Shout.background = UIColor.redColor()
ColorList.Shout.title = UIColor.whiteColor()
Shout(announcement, to: self, completion: {
    print("The shout was silent.")
})

result, not red background color and not white text color.

simulator screen shot 2015 12 31 1 26 48

@RamonGilabert
Copy link
Contributor

Hey @seapy! It is possible, there was a legacy view in the Shout to make some sort of blur notification but we weren't using anymore, pretty much, now you can change everything.

There was also a mistake in the labels fixed in #32!

@zenangst
Copy link
Contributor

zenangst commented Jan 4, 2016

Fixed by #32

@zenangst zenangst closed this as completed Jan 4, 2016
@seapy
Copy link
Author

seapy commented Jan 5, 2016

Test Demo app and it works. 👍
and need update cocoapod

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

No branches or pull requests

3 participants