mirror of
https://github.com/yattee/yattee.git
synced 2025-12-20 19:50:19 +00:00
Replace environment objects with observed objects
This commit is contained in:
@@ -2,7 +2,7 @@ import Defaults
|
||||
import SwiftUI
|
||||
|
||||
struct AccountsMenuView: View {
|
||||
@EnvironmentObject<AccountsModel> private var model
|
||||
@ObservedObject private var model = AccountsModel.shared
|
||||
|
||||
@Default(.accounts) private var accounts
|
||||
@Default(.instances) private var instances
|
||||
|
||||
Reference in New Issue
Block a user