19 lines
618 B
Swift
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)
|
|
}
|
|
}
|