Refactor the GroupBox style and make error fonts smaller to not impede the user's experience. Signed-off-by: kingbri <bdashore3@gmail.com>
20 lines
476 B
Swift
20 lines
476 B
Swift
//
|
|
// GroupBoxStyle.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 7/21/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ErrorGroupBoxStyle: GroupBoxStyle {
|
|
func makeBody(configuration: Configuration) -> some View {
|
|
VStack {
|
|
configuration.label
|
|
configuration.content
|
|
}
|
|
.padding(10)
|
|
.background(Color(uiColor: .secondarySystemGroupedBackground))
|
|
.clipShape(RoundedRectangle(cornerRadius: 8, style: .continuous))
|
|
}
|
|
}
|