navigationBarを透明にする処理

Swift4.0

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    self.navigationController!.navigationBar.setBackgroundImage(UIImage(), for: .default)
    self.navigationController!.navigationBar.shadowImage = UIImage()
}

自分用にメモメモ。。。

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.