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

I want to adjust the duration from 3 sec #2

Closed
samad5353 opened this issue Dec 26, 2016 · 4 comments
Closed

I want to adjust the duration from 3 sec #2

samad5353 opened this issue Dec 26, 2016 · 4 comments

Comments

@samad5353
Copy link

static let ASToastDuration = TimeInterval(0.5)

any option to edit this without editing pod file?

@abdullahselek
Copy link
Owner

Hi @samad5353, yes it is possible. Some of the "makeToast" functions have duration parameter which you can set a TimeInterval.

@samad5353
Copy link
Author

I want to make the initial delay of toast from 3 to 0.5

@abdullahselek
Copy link
Owner

ok, when you set the duration parameter initial delay changes

@samad5353
Copy link
Author

I tried to set the duration like
self.view.showToast(customView, duration: TimeInterval(1.0), position: ASToastPosition.ASToastPositionCenter.rawValue as AnyObject)
actual issue, is the initial delay to show the toast.
If I modify the duration parameter, initial delay changes as u said. but at the same time. toast will disappear.

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

2 participants