0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

NVActivityIndicatorViewのライブラリを使ってみた

Posted at

今回は、NVActivityIndicatorViewを使ってみたので、忘れないうちに備忘録としてアウトプットしようと思います。

環境

・Mac Book Pro(macOS:BigSur)
・Xcode(ver:12.5)

実装例

Unknown-3.gif

pacmanでやってみましたが、種類は色々あるのでgithubを覗いてみてください。

コード例

ViewController.swift
import NVActivityIndicatorView

class ViewController: UIViewController {

    @IBOutlet weak var indi1: UIView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let activityView = NVActivityIndicatorView(frame: indi1.bounds, type: .pacman, color: .blue,padding: .none)
        
        indi1.addSubview(activityView)
        activityView.startAnimating()
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?