CardView
@MainActor
struct CardView : View
This struct represents a card view that displays the details of a person. It conforms to the View protocol.
-
Binding to control the view mode.
Declaration
Swift
@Binding @MainActor var isViewMore: Bool { get nonmutating set }
-
Metadata of the person.
Declaration
Swift
@MainActor var metaData: [String : String]
-
Face bytes data.
Declaration
Swift
@MainActor var faceBytes: Data
-
Grid items for the scroll view.
Declaration
Swift
@MainActor let columns: [GridItem]
-
The body of the view.
Declaration
Swift
@MainActor var body: some View { get }
-
Calculate the maximum height for the content in the scroll view
Declaration
Swift
@MainActor func maxHeightForContent() -> CGFloat