SwiftUI quickLookPreview(_:) modifier doesn't work in iOS.

In Xcode document, It say quickLookPreview(_:) is available in iOS14.0+. But when I use it in Xcode , it show error and can't find this modifier at all. So does swiftUI really support this feature or not ?

It seems the documentation is quite unclear, but you may need to import QuickLook to use the modifier quickLookPreview(_:).

SwiftUI quickLookPreview(_:) modifier doesn't work in iOS.
 
 
Q