Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged SwiftUI

0 votes
957 views
1 answer
    This is the code struct Lumba:Identifiable { var id = UUID() var name:String var subLumba:[Lumba]? } ... simple lists but not to expandable. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
699 views
1 answer
    I present this view as a sheet from its parent view struct NamesView: View { @Binding var match: Match var body ... is a limitation of SwiftUI. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
624 views
1 answer
    NavigationBarItem can't Click after dismiss view! XCode11 beta3, MacOS Catalina 10.15 Beta(19A501i) When click DetailView button ... ) ) } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
565 views
1 answer
    Path.fill and .stroke of swiftUI in Xcode11 beta5 doesn't work The code below works fine in Xcode beta4, but it ... { ContentView() } } #endif See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
697 views
1 answer
    I have the following structure enum Page { case chapter1 case chapter2 } struct ContentView: View { @State var ... back-and-forth flip? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
948 views
1 answer
    How can I use @AppStorage for a string map in a SwiftUI app? This is what I want to do: @AppStorage("ratings ... possible to encode it as Data? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I learned how to create a tabBar like UIKit tabBar in swiftUI. And I want to move the center tabItem to top ... "Categories") } } Visual Example See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    As you can see from the image I have a TextField and after list. The list has a transparent background, I'm using ... : 400.0, alignment: .top) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How can I position a View at the bottom without using a spacer. I know I can achieve it placing a spacer and ... it at safe area bottom guide. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
689 views
1 answer
    I started with a clean project and added 5 buttons and 5 spacers in a VStack and all is good. When I add ... , should I switch back to UIKit? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    RectangleView has a slide animation, his child TextView has a rotation animation. I suppose that RectangleView with his child ... = false } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
766 views
1 answer
    I'm observing a bizarre thing: in the new widgets far too often remote images are not being displayed even ... , memory use is around 15mb See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
564 views
1 answer
    When using @Published property wrapper following current SwiftUI syntax, it seems very hard to define a protocol that ... syntax. Thanks a lot. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm trying to create a button that not only navigates to another view, but also run a function at the same time. ... runs }) { TradeButton() } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
931 views
1 answer
    I have the following component that renders a grid of semi transparent characters: var body: some View { VStack{ ... Data' could not be inferred See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Given this simple NavigationView: struct ContentView : View { var body: some View { NavigationView { VStack { ... just not there yet? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
684 views
1 answer
    Looking for some guidance on a simple way to pop multiple views off a navigation stack in SwiftUI. I have 4 views chained ... A.") } } } ''' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
552 views
1 answer
    Some of the UI setups not working automatically with the Dark/Light mode change as the UIColor. For ... only if userInterfaceStyle changed? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
608 views
1 answer
    I have following example: import SwiftUI struct TestSO: View { @State var cards = [ Card(title: "short title ... children? Thanks in advance! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
572 views
1 answer
    In this specific case, when I try to change an @EnvironmentObject's @Published var, I find that the view is not ... 't work with this setup. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    I'm trying to execute some code I'd have previously put in my app delegate, such as saving my managed object ... the app, but nothing happens. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I have a Plus button in my first view. Looks like a FAB button. I want to hide it after I ... it work different than using simultaneousGesture? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I came across a weird Issue in SwiftUI. I created a simple View that only holds a Button and a TabView ... updates it State for some reason. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
764 views
1 answer
    I'm experimenting with a pure SwiftUI app. It doesn't have a SceneDelegate so I'm unsure of where ... 's preferredColorScheme doesn't cover.) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...