๐Ÿ“ฆHLine / VLine

/// โญ๏ธ horizontal line
struct HLine: View {
    var color: Color = .red
    var width: CGFloat = 1
    var body: some View {
        Rectangle().fill(color).frame(height: width)
    }
}

/// โญ๏ธ vertical line
struct VLine: View {
    var color: Color = .red
    var width: CGFloat = 1
    var body: some View {
        Rectangle().fill(color).frame(width: width)
    }
}

Last updated