Runt
2025-06-25 65fab6199e8aeec02b9790c7a87b99fa98e3d07c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  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))
    }
}