Files
WerkoutIOS/Werkout_ios/Views/OvalTextFieldStyle.swift
Trey t f7ab828b28 WIP
2023-07-07 14:02:50 -05:00

19 lines
618 B
Swift

//
// OvalTextFieldStyle.swift
// Werkout_ios
//
// Created by Trey Tartt on 7/6/23.
//
import SwiftUI
struct OvalTextFieldStyle: TextFieldStyle {
func _body(configuration: TextField<Self._Label>) -> some View {
configuration
.padding(10)
.background(LinearGradient(gradient: Gradient(colors: [Color(uiColor: .secondarySystemBackground), Color(uiColor: .secondarySystemBackground)]), startPoint: .topLeading, endPoint: .bottomTrailing))
.cornerRadius(20)
.shadow(color: Color(red: 120/255, green: 120/255, blue: 120/255, opacity: 1), radius: 5)
}
}