TimelinePreviewItem
public struct TimelinePreviewItem
extension TimelinePreviewItem: View
extension TimelinePreviewItem: _ViewEmptyChecking
‘TimelinePreviewItem’ is an item specialized for placement in TimelinePreview.
-
Undocumented
Declaration
Swift
public init(@ViewBuilder title: () -> any View, @ViewBuilder icon: () -> any View = { EmptyView() }, @ViewBuilder timelineNode: () -> any View, @ViewBuilder timestamp: () -> any View = { EmptyView() }, isFuture: Bool = false, nodeType: TimelineNodeType)
-
Initialize a
TimelinePreviewItem
from aTimelinePreviewItemModel
.Declaration
Swift
init(model: any TimelinePreviewItemModel)
-
Undocumented
Declaration
Swift
init(title: AttributedString, icon: Image? = nil, timelineNode: TimelineNodeType, timestamp: AttributedString? = nil, isFuture: Bool = false, nodeType: TimelineNodeType)
-
Undocumented
Declaration
Swift
init(_ configuration: TimelinePreviewItemConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }