boardguy1024 / SwiftUI_BreatheAnimation

Breathe animating app using by SwiftUI

Repository from Github https://github.comboardguy1024/SwiftUI_BreatheAnimationRepository from Github https://github.comboardguy1024/SwiftUI_BreatheAnimation

SwiftUI_BreatheAnimation

SwiftUIでBreathe Animationの実装が直感的で簡単?だったので感動しました。

Startボタンをタップしたら3秒ごとに複数の丸が45度半時計周りで拡散しては、真ん中に集まるアニメーションです。 Timerを 0.1秒ごとにpublishしてその中で 3秒ごとにstartAnimating.toggleすることで丸が'拡散'<->'縮小'を繰り返す仕組みです。

動画の参考はこちら https://www.youtube.com/watch?v=ZsE6YeNvhx0

gif

About

Breathe animating app using by SwiftUI


Languages

Language:Swift 100.0%