類型別名
Playground
PlaygroundQuickLook
可用作快速查看表示的類型總和。
聲明
iOS、iPadOS、macOS、tvOS、watchOS
typealias PlaygroundQuickLook
麥克催化劑
typealias PlaygroundQuickLook = _PlaygroundQuickLook
詳述
PlaygroundQuickLook
協議已棄用,並將在未來的 Swift 版本中從標準庫中刪除。要在 Playground 中自定義類型的日誌記錄,請遵循 CustomPlaygroundDisplayConvertible
協議,該協議不使用 PlaygroundQuickLook
枚舉。
如果您需要在 Swift 4.0 或 Swift 3.2 或更早版本中提供自定義的遊樂場表示,請使用條件編譯塊:
#if swift(>=4.1) || (swift(>=3.3) && !swift(>=4.0))
// With Swift 4.1 and later (including Swift 3.3 and later), use
// the CustomPlaygroundDisplayConvertible protocol.
#else
// With Swift 4.0 and Swift 3.2 and earlier, use PlaygroundQuickLook
// and the CustomPlaygroundQuickLookable protocol.
#endif
可用版本
iOS 8.0+, iPadOS 8.0+, macOS 10.10+, Mac Catalyst 13.0+, tvOS 9.0+, watchOS 2.0+
相關用法
- Swift PrefixSequence contains(where:)用法及代碼示例
- Swift PartialRangeUpTo relative(to:)用法及代碼示例
- Swift PrefixSequence flatMap(_:)用法及代碼示例
- Swift PrefixSequence split(separator:maxSplits:omittingEmptySubsequences:)用法及代碼示例
- Swift PrefixSequence shuffled()用法及代碼示例
- Swift PartialRangeUpTo ~=(_:_:)用法及代碼示例
- Swift PrefixSequence forEach(_:)用法及代碼示例
- Swift PartialRangeFrom ~=(_:_:)用法及代碼示例
- Swift PrefixSequence first(where:)用法及代碼示例
- Swift PrefixSequence drop(while:)用法及代碼示例
- Swift PrefixSequence starts(with:)用法及代碼示例
- Swift PrefixSequence dropLast(_:)用法及代碼示例
- Swift PrefixSequence reduce(into:_:)用法及代碼示例
- Swift PrefixSequence reduce(_:_:)用法及代碼示例
- Swift PartialRangeFrom用法及代碼示例
- Swift PrefixSequence elementsEqual(_:)用法及代碼示例
- Swift PrefixSequence min(by:)用法及代碼示例
- Swift PartialRangeThrough ~=(_:_:)用法及代碼示例
- Swift PrefixSequence filter(_:)用法及代碼示例
- Swift PrefixSequence enumerated()用法及代碼示例
- Swift PrefixSequence shuffled(using:)用法及代碼示例
- Swift PrefixSequence max(by:)用法及代碼示例
- Swift PrefixSequence max()用法及代碼示例
- Swift PrefixSequence suffix(_:)用法及代碼示例
- Swift PrefixSequence allSatisfy(_:)用法及代碼示例
注:本文由純淨天空篩選整理自apple.com大神的英文原創作品 PlaygroundQuickLook。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。