27 lines
465 B
Swift
27 lines
465 B
Swift
//
|
|
// Avatar.swift
|
|
// duduji
|
|
//
|
|
// Created by ching on 2023/5/7.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct Avatar: View {
|
|
var body: some View {
|
|
Circle()
|
|
.fill(Color.blue)
|
|
.frame(width: 24, height: 24)
|
|
.overlay(
|
|
Circle()
|
|
.stroke(.gray.opacity(0.5), lineWidth: 2)
|
|
)
|
|
}
|
|
}
|
|
|
|
struct AvatarView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
Avatar()
|
|
}
|
|
}
|