Как отключить анимацию положения в SwiftUI?IOS

Программируем под IOS
Гость
Как отключить анимацию положения в SwiftUI?

Сообщение Гость »


Я хочу прокрутить programmatically and some of child views can be animated independently, but when changing the 's offset the animated child view move to its final position witth animation, that's not what I want and how to disable animating this position changes?
Here is my demo code,

Код: Выделить всё

import SwiftUI

struct ContentView: View {
@State var angle:Double = 0
@State var offset = 0
var body: some View {
LazyVStack {
ForEach((0..

Источник: [url]https://stackoverflow.com/questions/64288787/how-to-disable-position-animation-in-swiftui[/url]

Вернуться в «IOS»