Skip to content

Hadevs/Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Completions

Convinient using TimeInterval value.

alt text

Examples

Time(0).seconds // == 0 seconds == 0 TimeInterval

Time.zero // == Time(0)

Time.zero.seconds(5).minutes(3).seconds // is equal to 185 seconds of TimeInterval

For example, we need to set duration of animation, we can do it easy

UIView.animate(withDuration: Time(1).minutes(1)) { // duration of animation has become 1 minute and 1 second
  // animation block
}

About

Convinient using TimeInterval value.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages