secant-ios-wallet/secant/_Unmodularized/Utils/DebugFrame.swift

32 lines
655 B
Swift

//
// DebugFrame.swift
// secant-testnet
//
// Created by Adam Stener on 3/25/22.
//
import SwiftUI
struct DebugFrame: ViewModifier {
let color: Color
func body(content: Content) -> some View {
content
.overlay(
Rectangle()
.strokeBorder(
style: StrokeStyle(
lineWidth: 0.5,
dash: [3]
)
)
)
.foregroundColor(color)
}
}
extension View {
func debug(_ color: Color) -> some View {
modifier(DebugFrame(color: color))
}
}