How make ScrollView dragable with drag in macOS SwiftUI?
I have a scrollview in macOS SwiftUI, it is scrollable just with scrolling on the view, how ever I am unable to scroll with mouse drag, dragging up or down does not make scrollview scrolled. Should I enable some option to be able to do this? I think in past I had no issue with this, and maybe it is a new thing.
Reproduce apple macos calendar horizontal scroll
I am trying to reproduce the macos apple calendar but I’m having issues making the horizontal infinite scroll. The calendar needs to display 7 days at all times meaning that the user can’t scroll at any position
How can I define my MacOS app’s behaviour depending on the Focus Setting (Do Not Disturb)
I’m trying to define my MacOS app behaviour depending on if Do Not Disturb is enabled. If it is, my app will avoid opening new windows automatically or else it will open new windows resembling notifications.
NavigationSplitView highlights multiple options
I’m trying to use a Navigation Split View 2 column approach for an app that I’m deploying to MacOS. When I have multiple NavigationLink’s with the same value, all of them end up getting highlighted when one is selected.
In SwiftUI, when using HStack, why does it result in a vertical layout instead of a horizontal layout?
I’m new to SwiftUI. I know the hstack is the horizontal layout , but why it show vertical in this case ?
How do I get a list of active app windows with Swift in MacOS?
I’m trying to get a list of active windows for the app that a user is currently using. My ultimate goal is to be able to resize them to a certain height/width on some button combination presses. My app is a MenuBar App. Here is my code:
List in macOS tray app displays strangely
My Code is very simple.
SwiftUI’s List in macOS tray app displays strange
My Code is very simple.