Replace environment objects with observed objects

This commit is contained in:
Arkadiusz Fal
2022-11-24 21:36:05 +01:00
parent 23fa0968c6
commit 0d333b5583
102 changed files with 427 additions and 723 deletions

View File

@@ -8,7 +8,7 @@ import Foundation
#if os(macOS)
final class PlayerLayerView: NSView {
var player: PlayerModel! { didSet {
var player = PlayerModel.shared { didSet {
wantsLayer = true
}}
@@ -26,7 +26,7 @@ import Foundation
}
#else
final class PlayerLayerView: UIView {
var player: PlayerModel!
var player: PlayerModel { .shared }
override init(frame: CGRect) {
super.init(frame: frame)