lucaszischka / BottomSheet

A sliding Sheet from the bottom of the Screen with 3 States build with SwiftUI.
MIT License
1.03k stars 138 forks source link

View not redrawing when State/Binding data changes #137

Closed Dave181295 closed 1 year ago

Dave181295 commented 1 year ago
  .bottomSheet(bottomSheetPosition: $bottomSheetPosition,
                     switchablePositions: [.dynamic, .hidden],
                     title: NSLocalizedString("Set up Social Login", comment: "")) {

//Updating binding In child view
            LinkAccountProviderView()
                .padding([.horizontal, .vertical])
                .padding([.bottom])

        }

Binding updates never trigger the view to redraw.

lucaszischka commented 1 year ago

Hello @Dave181295, I don't understand your issue and can't reproduce it with the provided code. Please make sure that you handle view updates and state management/observation correctly. If you share more details on the issue, I will revisit and reopen it if applicable.