Post

Replies

Boosts

Views

Activity

Reply to Why is @Binding not behaving as I expect here?
I've also found that swiftUI's refreshing had gone wrong somehow if I do this: List($someSortOfADynamicList) { $item in TextField("Placeholder...", text: $item.someSortOfAStringVariable) } it'll act very weird. Every time a value is changed, the current textfield focused defocused. And if you use a NavigationView, the current NavigationLink gets unfocused, that is, no view displayed in the destination page.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to SwiftUI Form space between two buttons
Use form: Form {     Section("If you have a title add here") {         Button {                      } label: {             Label("Test", systemImage: "circle.fill")             }     Section {         Button(role: .destructive) {                      } label: {             Label("Test", systemImage: "trash.fill")         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Integrating external 3d sources or links with SwiftUI
SceneView: import SceneKit import SwiftUI ...         SceneView(             scene: /* a scene in SCNScene or other formats (I remember you can use .obj, etc.) */,             options: [             .allowsCameraControl,             .autoenablesDefaultLighting .someOtherOption             ] ...         )
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Opening a SwiftUI app window to a particular place via intent?
I think only OpenWindow works and you can maybe...communicate with your app through some sort of thingy like AppStorage or NotificationCenter? 🫠 As long as I know, even if it's UIKit sort of thing if you import it and it's a function that doesn't relate very much to generating a UI, it'll work. Folks have done things like modifying navigational view details and others through these.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Why SFSymbol "face.smiling" will changed to "face.smiling.fill" when switching to dark mode.
Environment Variable? I know in SwiftUI you can: struct SmileyFaceView: View {     @Environment(\.colorScheme) var scheme     var body: some View {         Image(systemName: "face.smiling")             .foregroundColor(scheme == .light ? .black : .white) // this is to change to color according to the scheme             .environment(\.colorScheme, .light) // This is to force the icon to the face.smily     } } for your need not sure in UIKit
Topic: Design SubTopic: General Tags:
Sep ’22