41,399 questions
0
votes
0
answers
17
views
How to achieve NSPopupButton "grouped form" style using AppKit?
How does one achieve the "grouped" style controls without SwiftUI, using only AppKit? I've played with combinations of bezel styles and other properties, but cannot get it to fit that style.
...
0
votes
2
answers
22
views
In SwiftUI, what's the best way to anchor one view to the containers center, while anchoring an additional view to its edge?
I'm newish to SwiftUI and trying to understand how I can keep one view horizontally centered on the device screen, while anchoring an additional view to its trailing edge (without uncentering the ...
0
votes
0
answers
12
views
Apple GCController.shouldMonitorBackgroundEvents value broken?
I am suspecting that setting GCController.shouldMonitorBackgroundEvents = true does not actually make the game controllers inputs accessible to the app when it is in the background.
About this value ...
0
votes
1
answer
23
views
Swift generic specialized type prevents protocol conformance
In swift, given the following protocols
protocol Mark {}
protocol Detector {
associatedType ViewType: View
func check(mark: some Mark) -> ViewType
}
Non-specialized ContentView compiles
...
0
votes
2
answers
49
views
Why SwiftUI redraws the body of my custom View since nothing related to him changes?
Here is an example:
struct DemoApp: View {
@State var viewModel = DemoAppViewModel()
var body: some View {
VStack {
DemoMonthView(date: viewModel.monthDate)
...
0
votes
1
answer
32
views
SwiftUI Table and TextEditor stacked vertically and enclosed in one ScrollView
I would like to have a ScrollView that encloses a Table and a TextEditor, stacked vertically. With this arrangement, a user would always scroll down past all the table rows to find the text editor.
...
0
votes
0
answers
22
views
Trying to make a wrapper to asynchronously load my data for different views
ok, I am fairly new to swiftui, and I have a app with a bunch of views where some of the need to asynchronously. I started out thinking that I should just make a View where my "real" view ...
2
votes
2
answers
40
views
Swift protocol function requirement with both generic function arguement and generic return type
For a protocol
protocol Mark {}
Why would this compile 👉 generic argument only
protocol Detector {
func check(mark: some Mark)
}
class Vision: Detector { // conforms
func check(mark: some ...
-1
votes
0
answers
31
views
Any known issues with using negative values for padding in SwiftUI [closed]
I have a RootContainer view in my SwiftUI app that takes in content as a view builder, adds it to a ScrollView then adds padding to the content. Some views need to go edge to edge and so I was going ...
0
votes
1
answer
30
views
iOS VoiceOver is not reading Korean when it is the primary language
One of our user is trying to use iOS's VoiceOver with our SwiftUI app and they are not able to use it properly in Korean Language
Issue is VoiceOver doesn't read Korean strings if the primary ...
1
vote
1
answer
42
views
Updating a preview image via @State and @Binding
I'm a total newbie, just started learning Swift a few days ago and SwiftUI today, so please be gentle :)
Trying to capture images from a camera and show them in a preview. This is for MacOS, not iOS.
...
-1
votes
0
answers
39
views
Colors on Older Hardware Don't Appear as Expected
I have created an Indicator for a horizontal scroll view that contains SwiftUI Images. The Indicator works and does just what you would expect. However, I was very surprised to find that these colors ...
1
vote
1
answer
26
views
Make TabView content background transparent so that a "constant" UIViewRepresentable WKWebView can be displayed behind it
I am creating an app where the primary UI is a WKWebView and SwiftUI is only used for odds and ends of the app. I am running into a snag using the SwiftUI system UI TabView. If you run this sample app ...
0
votes
1
answer
35
views
interactiveDismissDisabled prevents the user from quitting the app?
I'm building a macOS app with SwiftUI and I have a modal I want to show users that must not be dismissed. interactiveDismissDisabled seems like the perfect fit for my use case (and indeed it works ...
0
votes
0
answers
23
views
AppReview iOS crash EXC_BAD_ACCESS (SIGSEGV)
I am failing app review because of a EXC_BAD_ACCESS (SIGSEGV) when app review simply opens a view. I tried reproducing it on every real/sim device possible and iOS version but I can't. I will add a ...