refactor: notifications and settings view models; enhance login and registration UI
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import SwiftUI
|
||||
|
||||
struct CardContainerModifier: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
content
|
||||
.padding(.horizontal, 20)
|
||||
.padding(.vertical, 24)
|
||||
.background(Color(.systemBackground).opacity(0.8))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 28, style: .continuous))
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 28, style: .continuous)
|
||||
.stroke(Color.primary.opacity(0.06), lineWidth: 1)
|
||||
)
|
||||
.padding(16)
|
||||
}
|
||||
}
|
||||
|
||||
extension View {
|
||||
func cardContainer() -> some View {
|
||||
modifier(CardContainerModifier())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user