Post

Replies

Boosts

Views

Activity

Using Menu in tabViewBottomAccessory
I'm trying to use menu in tabViewBottomAccessory to present a menu of options and I'm finding that the tap is only registered if the text is tapped any taps outside of the text is not registered. Is there a way to get the whole button to register? TabView(selection: $entryManager.currentTab) { Tab("Home", systemImage: "circle.hexagonpath.fill", value: .home) { SomeView() } .tabViewBottomAccessory { Menu("Post Review") { // MARK: Submit Other Button(action: { } ) { Label("Submit Other", systemImage: "building.2.fill") } Button(action: { } ) { Label("Submit Bed", systemImage: "bed.double.fill") } } }
Topic: UI Frameworks SubTopic: SwiftUI
2
0
244
Oct ’25
Getting a view to animate on state change
I have a view that I am trying to get to animate on state change either using a transition or animate and so far nothing I've done has worked. I've tried using withAnimation and .transition in various manners and no luck. Below is a repro and you'll see that the transition is very jagged. Looking for suggestions on the best approach. struct StackView: View {   @State var showStack = true   let columns = [     GridItem(.flexible()),     GridItem(.flexible()),   ]   var body: some View {     VStack {       if showStack {         ZStack {           ForEach(0 ..< 15) { item in             TileView()               .rotationEffect(.degrees(Double.random(in: 1..<45)))               .transition(.asymmetric(insertion: .move(edge: .leading), removal: .move(edge: .bottom)))           }         }       } else {         LazyVGrid(columns: columns, spacing: 20) {           ForEach(0 ..< 15) { item in             TileView()               .transition(.asymmetric(insertion: .move(edge: .leading), removal: .move(edge: .bottom)))           }         }       }     }     .onAppear {         DispatchQueue.main.asyncAfter(deadline: .now() + 1.9) {           withAnimation(Animation.easeInOut(duration: 1).delay(0.5)) {             showStack = false           }         }     }   } } struct TileView: View {   var body: some View {     RoundedRectangle(cornerRadius: 13)       .frame(width: 175, height: 175, alignment: .center)       .foregroundColor(.red)       .shadow(radius: 13)       .overlay(         Text("1")           .font(.largeTitle)       )       .transition(.asymmetric(insertion: .move(edge: .leading), removal: .move(edge: .bottom)))   } }
0
1
1.4k
Mar ’22
Xcode Cloud Build input file not found
I'm trying to get Xcode Cloud up and running for my project. I'm using the basic default workflow, but it is failing with the following error Build input cannot be found /GoogleService-Info.plist. Did you forget to declare this file as an output of a script phase or custom build rule which produces it I don't have any issues with distribution or building, just Xcode Cloud.
2
0
1.8k
Apr ’23