I placed 3d object to ARViewController after 3 seconds of placing object, then I want to rotate object by 90 degrees: arView.scene.addAnchor(anchorEntity) Disp
When I develop the feature that allows users drag ScrollView to dismiss keyboard in SwiftUI, I find that if you drag ScrollView as the keyboard is dismissing, t
I have ModelEntity in SwiftUI and it moves. But the problem is: when adding generateCollisionShape method, it doesn't move anymore. I want a collision effect as
I am creating a edit view in SwiftUI for Mac OSX. A user can change his profile. At the moment I am using default Text() elements to view his current values/set
I found the new method in SwiftUI to allow you to create an exponent. Here what I write code is based in SwiftUI on the Swift Playground. import SwiftUI impo
Consider this view in SwiftUI: struct MyView: View { var body: some View { Rectangle() .fill(Color.blue) .frame(width: 200,
Consider this view in SwiftUI: struct MyView: View { var body: some View { Rectangle() .fill(Color.blue) .frame(width: 200,
I’m new to iOS development. Following a tutorial I have created a simple calculator using SwiftUI. I have a keyboard attached to my iPad, and I would lik
I'm trying to make reusable custom views that themselves can be customized later. Ideally I'd be able to define default modifiers like Color, Font, etc that the
As example I have 3 properties: var path1FilePath:String = "Src/" var path2FileName: String = "filename" var path3Extension: String = ".jpg" I need to displa
I build a StreamingView like this: struct StreamingView: UIViewRepresentable { func updateUIView(_ uiView: UIView, context: UIViewRepresentableContext<
does anyone know how to give the minutes DatePicker an interval? I am trying to only display multiples of 15 (0, 15, 30, 45). Is this only yet possible by inter
Is there a way to e.g. logically negate Binding<Bool>? For example, I've a state variable @State var isDone = true which I pass as a biding into diffe
In UIKit this could be done with code like this: if button.frame.contains(sender.location(in: rightStackView)) { ... } but in SwiftUI I can't seem to find an
I want to immediately present the second alert view after click the dismiss button of the first alert view. Button(action: { self.alertIsVisible = true })
I'm trying to popup a document picker using mac catalyst, but all I get is a blank screen. All works well on ios 13.2.2 on iPad and iPhone, but not on macos 10
UIDocumentPickerViewController works on iOS but not on Mac Catalyst. Is there any alternatives to workaround this issue? BTW, NSOpenPanel is unavailable on Mac
I'm making a school project in which I have to find the weight of a person on different planets, but I am confused about how I should use the input and multiply
In SwiftUI, I've managed to make a Button animate right when the view is first drawn to the screen, using the animation(_:) modifier, that was deprecated in mac
I have a button and I'd like to put a semi-transparent gradient overlay on top of it. Button(action: { print("Pressed") }) { Text("Press me") } .overlay(