mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
seiike cant even add a shadow 😭
This commit is contained in:
parent
baa42e643c
commit
7957601814
1 changed files with 11 additions and 6 deletions
|
|
@ -1357,6 +1357,12 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
|||
airplayButton.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
controlsContainerView.addSubview(airplayButton)
|
||||
|
||||
airplayButton.layer.shadowColor = UIColor.black.cgColor
|
||||
airplayButton.layer.shadowOffset = CGSize(width: 0, height: 2)
|
||||
airplayButton.layer.shadowOpacity = 0.6
|
||||
airplayButton.layer.shadowRadius = 4
|
||||
airplayButton.layer.masksToBounds = false
|
||||
|
||||
guard AVPictureInPictureController.isPictureInPictureSupported() else {
|
||||
return
|
||||
}
|
||||
|
|
@ -1368,7 +1374,6 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
|||
pipController = AVPictureInPictureController(playerLayer: pipPlayerLayer)
|
||||
pipController?.delegate = self
|
||||
|
||||
|
||||
let config = UIImage.SymbolConfiguration(pointSize: 15, weight: .medium)
|
||||
let Image = UIImage(systemName: "pip", withConfiguration: config)
|
||||
pipButton = UIButton(type: .system)
|
||||
|
|
@ -1416,11 +1421,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
|||
menuButton.isHidden = true
|
||||
}
|
||||
|
||||
dismissButton.layer.shadowColor = UIColor.black.cgColor
|
||||
dismissButton.layer.shadowOffset = CGSize(width: 0, height: 2)
|
||||
dismissButton.layer.shadowOpacity = 0.6
|
||||
dismissButton.layer.shadowRadius = 4
|
||||
dismissButton.layer.masksToBounds = false
|
||||
menuButton.layer.shadowColor = UIColor.black.cgColor
|
||||
menuButton.layer.shadowOffset = CGSize(width: 0, height: 2)
|
||||
menuButton.layer.shadowOpacity = 0.6
|
||||
menuButton.layer.shadowRadius = 4
|
||||
menuButton.layer.masksToBounds = false
|
||||
|
||||
controlsContainerView.addSubview(menuButton)
|
||||
menuButton.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
|
|
|||
Loading…
Reference in a new issue