You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to expose the floating panel view. I wanted to wrap the PopupView in a floating panel and call it a PopupPanel. I was able to do so, but it required a weird workaround with an empty Spacer view.
publicstructPopupPanel:View{varpopup:Popup?varisPresented:Binding<Bool>publicvarbody:someView{Group{iflet popup, isPresented.wrappedValue {
// Here is the workaround, it works, but it's awkward.
ZStack{Spacer()}.floatingPanel(isPresented: isPresented){PopupView(popup: popup, isPresented: isPresented).showCloseButton(true).padding()}}else{EmptyView()}}}}
If we exposed the FloatingPanel as a View, it would be much easier to do this. But right now it's private to the toolkit.
The text was updated successfully, but these errors were encountered:
I think it would be nice to expose the floating panel view. I wanted to wrap the PopupView in a floating panel and call it a PopupPanel. I was able to do so, but it required a weird workaround with an empty Spacer view.
If we exposed the FloatingPanel as a View, it would be much easier to do this. But right now it's private to the toolkit.
The text was updated successfully, but these errors were encountered: