UIScrollView does not support multiple observers implementing _observeScrollView
I was getting this error:
[Assert] UIScrollView does not support multiple observers implementing _observeScrollView:willEndDraggingWithVelocity:targetContentOffset:unclampedOriginalTarget:. Scroll view <SwiftUI.HostingScrollView: 0x101887800; baseClass = UIScrollView; frame = (0 0; 414 736); anchorPoint = (0, 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x28281f090>; layer = <CALayer: 0x2826d3e40>; contentOffset: {0, -168}; contentSize: {414, 10220.333333333332}; adjustedContentInset: {168, 0, 0, 0}>, new observer <UINavigationController: 0x10600a800>, removing old observer <_TtGC7SwiftUI41StyleContextSplitViewNavigationControllerVS_19SidebarStyleContext_: 0x101857a00>
To fix the error I’ve placed in the view that was causing this error this line of code
.navigationBarTitle(“”, displayMode: .inline)
I hope this helps someone
Tag:list, navigationlink