BPKBadge
public struct BPKBadge : View
A view that displays one line of text with an optional icon
By default the style of BPKBadge is set to .normal
Use badgeStyle(_ style: BPKBadge.Style)
to change the style of the badge
-
Declaration
Swift
public init(_ title: String, icon: BPKIcon? = nil)
-
Declaration
Swift
public var body: some View { get }
-
Sets the style of the badge
Declaration
Swift
public func badgeStyle(_ style: BPKBadge.Style) -> BPKBadge
Parameters
style
The
BPKBadge.Style
to change the appearance view.Return Value
A BPKBadge that uses the style you supply.
-
Declaration
Swift
public func createBadgeIconView(icon: BPKIcon?) -> BPKIconView?
-
Declaration
Swift
public enum Style