I tried to use Float16
today in Xcode 12.5 (Swift 5.4) on macOS 11.3, and…it doesn't work. According to Apple's docs it's in the Swift Standard Library. But if I write:
let f: Float16 = 1
I get 'Float16' is unavailable in macOS. If I grep through Xcode.app/
, I find x86_64-apple-macos.swiftinterface
:
@available(macOS 11, iOS 14, tvOS 14, watchOS 7, *)
@available(macOS, unavailable)
@available(macCatalyst, unavailable)
@frozen public struct Float16 {
@_transparent public init() {
fatalError("Float16 is not available")
}
}
My macOS app targets only macOS 11.
I'm not at all sure how I can use it.