swiftui-animation Questions
2
Solved
New NavigationStack in SwiftUI transition, how to change from the default slide to custom or appear?
I have NavigationStack with its own navigation links, for iOS16 development.
How to change the default slide transition to appear or a custom transition?
Also do you apply the transition on the Nav...
Halfcocked asked 4/3, 2023 at 13:6
3
Solved
I have a yellow container with a green view inside. I want to move the container while also hiding/showing the inner green view, with an animation. Currently, I'm using .offset for the movement, an...
Nicknickel asked 7/12, 2021 at 0:42
2
My home view contains a CustomView that opens a detailed view via a NavigationLink when tapped. The detailed view also contains the CustomView, just in a different location.
Can I use the match geo...
Mcbee asked 6/6, 2023 at 2:46
2
Solved
I'm working on a sequence of screens that should change on a button press and should slide in/out from right to left.
Everything is working nicely except the .slide transition makes it move in from...
Laconic asked 21/10, 2021 at 13:48
3
I'm trying to create an animation of a View coming into the screen from the bottom. But in the very first time it only appears on screen without any animation and then it starts work properly.
This...
Stefansson asked 25/8, 2022 at 13:27
0
I want to know when my SwiftUI view has finished it's transition/animation in order to safely present additional views/modals.
Example:
I am in View A showing Sheet A.
Within Sheet A I tap a button...
Regenaregency asked 23/2, 2023 at 12:13
2
Solved
SwiftUI offers .animation() on bindings that will animate changes in the view. But if an @Published property from an @ObserveredObject changes 'autonomously' (e.g., from a timer), while the view wi...
Everara asked 22/4, 2021 at 20:3
2
Does anyone know how I can create a bottom sheet similar to the one in the Diary Queen app. I have tried a few times but every thing I've tried has made the bottom sheet appear above the bottom tab...
Urita asked 20/12, 2022 at 1:12
0
how to set the Push / Pop animation in macOS for a NavigationStack ? as currently there is no animation and i want to push / pop the controller sliding right (sliding left), similar to AppStore app...
Prouty asked 2/12, 2022 at 11:28
0
I want to repeat an animation forever, without it to autoreverse, and with a delay/pause between the repetitions after the animation played.
I know there is a .delay() modifier, but it delays the b...
Whistle asked 19/3, 2022 at 11:6
2
Solved
I'm trying to animate in a view and make it appear as if it's a sort of drawer opening from another view. This is all fine except if the first view is not opaque. It appears that you can see the an...
Statuary asked 21/1, 2022 at 21:39
1
Solved
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 macOS 12.
I've tried to replace this wit...
Roguery asked 22/12, 2021 at 8:48
2
Consider this simple example:
struct TestView: View {
@State private var enabled = false
var body: some View {
Circle()
.foregroundColor(.red)
.overlay(
Circle()
.foregroundColor(.blue)
....
Medici asked 2/1, 2021 at 22:5
1
Solved
I have a list that displays a CoreData FetchRequest, and I have a Picker that changes how the list is sorted. The current way I implemented this looks like:
struct ParentView: View {
enum SortMeth...
Hl asked 17/9, 2020 at 22:5
3
Solved
On my journey to learn more about SwiftUI, I am still getting confused with positioning my element in a ZStack.
The goal is "simple", I wanna have a text that will slide within a defined ...
Metropolitan asked 3/9, 2020 at 15:6
0
I am trying to create an animation for presenting and dismissing a group of objects. I have:
if self.showSignInButtons {
Group {
Button(action: {}) { ... }
HStack { ... }
Button(action: {}) {...
Zoa asked 5/4, 2020 at 22:3
2
Solved
I'm having a hard time understanding why this happens. I reduced the problem to its minimum expression.
I have a single Text view, that when removed, should just fade out. The .transition(.opacity)...
Unswear asked 20/6, 2019 at 6:15
1
© 2022 - 2025 — McMap. All rights reserved.