diff --git a/VDS/Components/Icon/Icon.swift b/VDS/Components/Icon/Icon.swift index 74e4f854..e6443eaa 100644 --- a/VDS/Components/Icon/Icon.swift +++ b/VDS/Components/Icon/Icon.swift @@ -31,6 +31,7 @@ open class Icon: View { open var color: Color = .black { didSet { didChange() }} open var size: Size = .medium { didSet { didChange() }} open var name: Name? { didSet { didChange() }} + open var customSize: Int? { didSet { didChange() }} //functions //-------------------------------------------------- @@ -76,7 +77,12 @@ open class Icon: View { } //set the icon dimensions - let dimensions = size.dimensions + var dimensions = size.dimensions + + if let customSize { + dimensions = .init(width: customSize, height: customSize) + } + heightConstraint?.constant = dimensions.height widthConstraint?.constant = dimensions.width