Skip to content

Instantly share code, notes, and snippets.

@ktanaka117
Created December 31, 2018 15:22
Show Gist options
  • Save ktanaka117/2eaf830930e4825c6379f37daaba40e7 to your computer and use it in GitHub Desktop.
Save ktanaka117/2eaf830930e4825c6379f37daaba40e7 to your computer and use it in GitHub Desktop.
// ここでは Boat_Loader.json というバンドルされたアニメーションファイルを設定
let boatAnimation = LOTAnimationView(name: "Boat_Loader")
boatAnimation.contentMode = .scaleAspectFill
boatAnimation.frame = view.bounds
view.addSubview(boatAnimation)
boatAnimation.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment