Better way to subscribe to a @published property that changes another @State variable
I have 2 tabbed application where on first tab, it displays a list of grouped media and on second tab you can display more details of the media grid and change some properties of it. For a media group there is a highlighter / thumbnail image the user can pick from elsewhere in the app (2nd tab for example). I’m trying to reflect the change across the UI where the user changes it and it seems very buggy. Looking for a better approach. Thanks in advance.
How to link drag gesture on a separate view to control content scroll within a SwiftUI ScrollView?
I’m trying to implement a functionality similar to the horizontal cryptocurrency listing on the CoinGecko website(viewed on a mobile phone), where the scrollable content is controlled from a separate fixed-position part of the screen.
In my SwiftUI app I want the content within the right side’s ScrollView to scroll horizontally, while the left part remains static. Essentially, I’m aiming to enable scrolling across the entire screen, regardless of where the touch interaction starts. How can I achieve this effect where touching and dragging on the non-scrollable left part controls the scroll in the ScrollView on the right?
SwiftUI: Group can not be included in body, error: Failed to produce diagnostic for expression; please submit a bug report
I am developing a demo to practice swiftUI and Combine, I got error when I add group into a view as follows: