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

Toast iOS Error #2

Closed
rlecheta opened this issue Jan 6, 2019 · 1 comment
Closed

Toast iOS Error #2

rlecheta opened this issue Jan 6, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@rlecheta
Copy link

rlecheta commented Jan 6, 2019

Hi, I got this error after running this line:
Toast.show("Toast plugin app", duration: Toast.LENGTH_SHORT, gravity: Toast.BOTTOM);

flutter/.pub-cache/hosted/pub.dartlang.org/toast-0.0.6/ios/Classes/ToastReference.swift:325:37: error: 'init(style:)' has been renamed to 'init(activityIndicatorStyle:)'
let activityIndicatorView = UIActivityIndicatorView(style: .whiteLarge)
^ ~~~~~
activityIndicatorStyle
UIKit.UIActivityIndicatorView:6:12: note: 'init(style:)' was introduced in Swift 4.2
public init(style: UIActivityIndicatorViewStyle)
^
/Users/rlecheta/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/toast-0.0.6/ios/Classes/ToastReference.swift:354:47: error: 'common' has been renamed to 'RunLoopMode.commonModes'
RunLoop.main.add(timer, forMode: .common)
^~~~~~
RunLoopMode.commonModes
Foundation.RunLoop.Mode:9:23: note: 'common' was introduced in Swift 4.2
public static let common: RunLoopMode
^
/Users/rlecheta/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/toast-0.0.6/ios/Classes/ToastReference.swift:354:47: error: 'common' has been renamed to 'RunLoopMode.commonModes'
RunLoop.main.add(timer, forMode: .common)
^~~~~~
RunLoopMode.commonModes
Foundation.RunLoop.Mode:9:23: note: 'common' was introduced in Swift 4.2
public static let common: RunLoopMode

@appdev
Copy link
Owner

appdev commented Jan 7, 2019

you can use new version

toast: ^0.1.0

@appdev appdev added the bug Something isn't working label Jan 7, 2019
@appdev appdev closed this as completed Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants