DFWatchCloseView.swift 577 Bytes
//
//  DFWatchCloseView.swift
//  iwatch
//
//  Created by 权海 on 2026/6/12.
//

import SwiftUI


struct DFWatchCloseView: View {
    let closeOnClick: (() -> Void)?
    var body: some View {
        Button {
            closeOnClick?()
        } label: {
            Image(systemName: "xmark")
                .fontWeight(.bold)
                .tint(.white)
                
        }
        .frame(width: 32, height: 32)
        .background(.white.opacity(0.1))
        .clipShape(
            RoundedRectangle(cornerRadius: 16)
        ).padding(.leading, 14)
    }
}