You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am really struggling with implementing the Shout in my app, and I have tried to follow the instructions regarding code, as well as trying several other methods in an attempt to make it work.
Here is two attempts I've tried:
let anno = Announcement(title: "My title", subtitle: "My subtitle", image: UIImage(named: ""), duration: 3.0) {
show(shout: anno, to: ViewController)
}
And:
let anno = Announcement(title: "My title", subtitle: "My subtitle", image: UIImage(named: ""), duration: 3.0, action: nil)
show(shout: anno, to: ViewController)
I have also tried to switch between using 'ViewController' and 'self' with no luck. Any ideas on how I would implement this correctly?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
@askaale Try the following, which is working in Swift 3:
import Whisper
let anno = Announcement(title: "My title",
subtitle: "My subtitle",
image: UIImage(named: ""),
duration: 3.0)
Whisper.show(shout: anno, to: self)
Hi there,
I am really struggling with implementing the Shout in my app, and I have tried to follow the instructions regarding code, as well as trying several other methods in an attempt to make it work.
Here is two attempts I've tried:
And:
I have also tried to switch between using 'ViewController' and 'self' with no luck. Any ideas on how I would implement this correctly?
Thanks in advance!
The text was updated successfully, but these errors were encountered: