//
|
// IconPortrait.swift
|
// LiveProject
|
//
|
// Created by 倪路朋 on 6/25/25.
|
//
|
|
import SwiftUI
|
|
struct IconPortrait: View {
|
var color: Color = .white
|
var size: CGSize = CGSize(width: 15, height:20)
|
var lineWidth: CGFloat = 2.0
|
var padding = EdgeInsets(top: 0, leading: 2.5, bottom: 0, trailing: 2.5)
|
|
var body: some View {
|
IconRect()
|
.stroke(color, lineWidth: lineWidth)
|
.frame(width: size.width, height: size.height)
|
.padding(padding)
|
}
|
}
|
|
struct IconPortrait_Previews : PreviewProvider{
|
static var previews: some View {
|
IconPortrait(color: .black,size: CGSize(width: 60, height: 90))
|
}
|
}
|