mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Have the UserIndicatorController use a separate window, switch to using one single instance throughout the application
This commit is contained in:
committed by
Stefan Ceriu
parent
1102beb3dd
commit
4b26a798dc
@@ -18,14 +18,11 @@ import SwiftUI
|
||||
|
||||
struct UserIndicatorPresenter: View {
|
||||
@ObservedObject var userIndicatorController: UserIndicatorController
|
||||
let rootView: AnyView
|
||||
|
||||
var body: some View {
|
||||
ZStack(alignment: .top) {
|
||||
rootView
|
||||
indicatorViewFor(indicator: userIndicatorController.activeIndicator)
|
||||
}
|
||||
.animation(.elementDefault, value: userIndicatorController.activeIndicator)
|
||||
indicatorViewFor(indicator: userIndicatorController.activeIndicator)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
|
||||
.animation(.elementDefault, value: userIndicatorController.activeIndicator)
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
|
||||
Reference in New Issue
Block a user