Add missing documentation
This commit is contained in:
parent
8785f8ae28
commit
81a485a0b1
|
@ -37,6 +37,9 @@ extension UICatalog.PreviewConfiguration {
|
|||
UICatalog.PreviewConfiguration(themes: themes, contentSize: contentSize, size: newSize)
|
||||
}
|
||||
|
||||
/// Sets the style of a single preview item
|
||||
/// - Parameter itemStyle: item style
|
||||
/// - Returns: updated configuration
|
||||
public func with(itemStyle: PreviewItemStyle) -> UICatalog.PreviewConfiguration {
|
||||
UICatalog.PreviewConfiguration(themes: self.themes,
|
||||
contentSize: self.contentSize,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import SwiftUI
|
||||
|
||||
/// Single item style
|
||||
@available(iOS 13, *)
|
||||
public protocol PreviewItemStyle {
|
||||
/// Creates a view that represents single item of a preview.
|
||||
|
@ -13,6 +14,7 @@ public protocol PreviewItemStyle {
|
|||
}
|
||||
|
||||
extension UICatalog {
|
||||
/// Data passed to preview item rederer
|
||||
@available(iOS 13, *)
|
||||
public struct PreviewItemStyleConfiguration {
|
||||
public let modelInfo: String
|
||||
|
|
Loading…
Reference in New Issue