Add availability annotations
This commit is contained in:
parent
afaf902502
commit
f65503ea00
|
@ -4,6 +4,7 @@ import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
extension UICatalog {
|
extension UICatalog {
|
||||||
|
@available(iOS 13, *)
|
||||||
public struct Preview {
|
public struct Preview {
|
||||||
init(_ view: AnyView, title: String) {
|
init(_ view: AnyView, title: String) {
|
||||||
self.title = title
|
self.title = title
|
||||||
|
|
|
@ -4,7 +4,7 @@ import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
extension UICatalog {
|
extension UICatalog {
|
||||||
|
@available(iOS 13, *)
|
||||||
public struct PreviewDescriptor: Identifiable, Hashable {
|
public struct PreviewDescriptor: Identifiable, Hashable {
|
||||||
let builder: () -> AnyView
|
let builder: () -> AnyView
|
||||||
public let id: String
|
public let id: String
|
||||||
|
@ -22,6 +22,7 @@ extension UICatalog {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(iOS 13, *)
|
||||||
public extension UICatalog.PreviewDescriptor {
|
public extension UICatalog.PreviewDescriptor {
|
||||||
init<Content>(_ content: Content.Type,
|
init<Content>(_ content: Content.Type,
|
||||||
configuration: UICatalog.PreviewConfiguration = .init(),
|
configuration: UICatalog.PreviewConfiguration = .init(),
|
||||||
|
|
Loading…
Reference in New Issue