mirror of
https://github.com/yattee/yattee.git
synced 2025-10-19 13:58:20 +00:00
Replace environment objects with observed objects
This commit is contained in:
@@ -5,7 +5,6 @@ import SwiftUI
|
||||
struct WelcomeScreen: View {
|
||||
@Environment(\.presentationMode) private var presentationMode
|
||||
|
||||
@EnvironmentObject<AccountsModel> private var accounts
|
||||
@State private var store = [ManifestedInstance]()
|
||||
|
||||
var body: some View {
|
||||
@@ -25,7 +24,7 @@ struct WelcomeScreen: View {
|
||||
ForEach(countries, id: \.self) { country in
|
||||
Button {
|
||||
Defaults[.countryOfPublicInstances] = country
|
||||
InstancesManifest.shared.setPublicAccount(country, accounts: accounts)
|
||||
InstancesManifest.shared.setPublicAccount(country)
|
||||
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
} label: {
|
||||
|
Reference in New Issue
Block a user