-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Koji Murata
committed
Sep 21, 2017
1 parent
d539b7d
commit 1585dae
Showing
4 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ViewController.swift | ||
// JellyAnimationView_Example | ||
// | ||
// Created by Koji Murata on 2017/09/21. | ||
// Copyright © 2017年 CocoaPods. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import JellyAnimationView | ||
|
||
final class ViewController: UIViewController { | ||
@IBOutlet private weak var animationView: JellyAnimationView! | ||
@IBOutlet private weak var immediatelySwitch: UISwitch! | ||
|
||
@IBAction private func animationToggle(_ sender: UIButton) { | ||
if animationView.isAnimating { | ||
animationView.stopAnimation(immediately: immediatelySwitch.isOn) | ||
} else { | ||
animationView.startAnimation() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters