This worked for me:
struct ManipulationState {
var transform: AffineTransform3D = .identity
var active: Bool = false
}
@GestureState var manipulationState = ManipulationState()
Topic:
App & System Services
SubTopic:
Core OS
Tags: