mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-28 12:12:03 +01:00
Updated for Xcode 11 Beta3
This commit is contained in:
@@ -15,10 +15,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
|
||||
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
||||
|
||||
let window = UIWindow(frame: UIScreen.main.bounds)
|
||||
window.rootViewController = UIHostingController(rootView: TabbarView().environmentObject(store))
|
||||
self.window = window
|
||||
window.makeKeyAndVisible()
|
||||
if let windowScene = scene as? UIWindowScene {
|
||||
let window = UIWindow(windowScene: windowScene)
|
||||
window.rootViewController = UIHostingController(rootView: TabbarView().environmentObject(store))
|
||||
self.window = window
|
||||
window.makeKeyAndVisible()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ struct UsersListView : View {
|
||||
}
|
||||
Section {
|
||||
ForEach(state.usersState.users) {user in
|
||||
NavigationButton(destination: UserDetailView(userId: user.id)) {
|
||||
NavigationLink(destination: UserDetailView(userId: user.id)) {
|
||||
UserRow(user: user)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user