需求 vc1 present 一個半透明的 vc2
在 vc2 中設置了背景透明和顏色
在彈出過程中透明 完成后變成不透明了
解決:
let vc2 = SignInResultVC()
vc2.definesPresentationContext = true
vc2.modalPresentationStyle = .overCurrentContext
self.present(vc2, animated: true, completion: nil)
需求 vc1 present 一個半透明的 vc2
在 vc2 中設置了背景透明和顏色
在彈出過程中透明 完成后變成不透明了
解決:
let vc2 = SignInResultVC()
vc2.definesPresentationContext = true
vc2.modalPresentationStyle = .overCurrentContext
self.present(vc2, animated: true, completion: nil)