Why isn’t Self._logChanges logging any changes when used in a View?
I’m new to Swift and am trying to learn what’s causing my Views to rerenders? And more specifically, what View are being re-rendered.
SwiftUI cannot multiline a popover
Is it possible to have a .popover
on macOS with multiline text?
How can I direct a SwiftUI parent view to have its embedded child view persist its values independently?
I have a View that is composed with a child view that is vended from a user selected object, presented as a sheet in a containing view. The Title/Address/Port in the screen shot below is from a single view and then the parent view has the Ok/Cancel buttons (The reasons for them to be separate is that I will need to reuse the vended settings views in another context which will have other settings and will have its own buttons)
problem with NavigationStack inside NavigationLink inside NavigationSplitView
in a new SwiftUI mac app project, paste below code
SwiftUI navigation bar colour scheme on macOS (toolbarColorScheme doesn’t work)
I’m working on an app that should support both iOS and macOS (natively). I’m styling it’s navigation bar colour and need it’s title to be dark (i.e., the navigation bar should follow the light colour scheme), otherwise it’s not visible, when the system colour scheme is set to dark.
How to Get and Modify Window Information in macOS using SwiftUI
I’m developing a macOS app using SwiftUI and need to interact with windows of other applications. Specifically, I need to:
I found a bug in SwiftUI while making a macOS app
when i use height*some number
enter image description here
when i use height-some number
enter image description here
I’m a beginner and I’m feeling confused. Please some one help me! Thanks!
Preserving navigation state in a macOS SwiftUI application with sidebar navigation
I have a simple NavigationSplitView with various detail views and I want to preserve the navigation state in each of these detail views when the user switches detail views. But it seems that the navigation path is always reset when switching views.
How can I add a window to my app from a button in a menu bar?
I would like to make something like the following work:
Button with PlainButtonStyle doesn’t get tapped when the window is inactive
I’m writing a MacOS app. I’m displaying a button. When the app is inactive, if I click the button, the button’s tap event gets triggered as the same time as the window is activated. So far so good.