// 故意编译失败:MagnifyGesture.Value 的属性是 magnification,不是 scale。 // 复现:swiftc -typecheck Diagnostics/MagnifyWrongProperty.swift import SwiftUI struct Bad: View { var body: some View { Rectangle() .gesture( MagnifyGesture().onChanged { value in _ = value.scale } ) } }