mirror of
https://github.com/yattee/yattee.git
synced 2025-12-31 08:52:31 +00:00
Replace environment objects with observed objects
This commit is contained in:
@@ -13,7 +13,7 @@ struct VideoDetailsToolbar: View {
|
||||
@State private var startedToolPosition: CGRect = .zero
|
||||
@State private var opacity = 1.0
|
||||
|
||||
@EnvironmentObject<PlayerModel> private var player
|
||||
@ObservedObject private var player = PlayerModel.shared
|
||||
@Default(.playerDetailsPageButtonLabelStyle) private var playerDetailsPageButtonLabelStyle
|
||||
|
||||
var body: some View {
|
||||
|
||||
Reference in New Issue
Block a user