ObjectHeader

public struct ObjectHeader
extension ObjectHeader: View
extension ObjectHeader: _ViewEmptyChecking

ObjectHeader is a view that displays an object’s title, subtitle, tags, body text, footnote, description, status, substatus, detail image and detail content.

Usage

ObjectHeader {
    Text("title")
} subtitle: {
    Text("subtitle")
} tags: {
    Text("tag01")
} bodyText: {
    Text("body")
} footnote: {
    Text("footnote")
} descriptionText: {
    Text("description")
} status: {
    Text("status")
} substatus: {
    Text("substatus")
} detailImage: {
    Image(systemName: "person")
} detailContent: {
    Text("detail content")
}

Sets the separator for object header components Example usage:

ObjectHeader(...)
    .headerSeparator(true) // Show separator with default style
    .headerSeparator(true, color: .red) // Show red separator
    .headerSeparator(true, color: .blue, lineWidth: 1.0) // Show thick blue separator
    .headerSeparator(false) // Hide separator