Open AndreiD opened 8 years ago
thanks but its giving errors in swift 3
let options: [String: Any] = [kCRToastTextKey: "Member joined: (member.identity)", kCRToastTextAlignmentKey: NSTextAlignment.center, kCRToastBackgroundColorKey: UIColor.red, kCRToastAnimationInTypeKey: CRToastAnimationType.gravity, kCRToastAnimationOutTypeKey: CRToastAnimationType.gravity, kCRToastAnimationInDirectionKey: CRToastAnimationDirection.left, kCRToastAnimationOutDirectionKey: CRToastAnimationDirection.right]
CRToastManager.showNotification(options: options) {
print("completed")
}
This one is working example.
good
Here's an example using swift. Maybe add it in the readme somewhere, because digging though stackoverflow is not nice.