- Add enum-based FocusState (AddBookmarkFieldFocus) for cleaner code - Implement auto-scroll to URL field when focused - Implement auto-scroll to labels field with 40px offset when focused - Implement auto-scroll to title field when focused - Add ScrollViewReader with smooth animations - Update TagManagementView to support enum-based focus binding - Add FocusModifier for optional focus state handling - Improve keyboard handling with proper padding adjustments
22 lines
532 B
Swift
22 lines
532 B
Swift
//
|
|
// CustomTextFieldStyle.swift
|
|
// readeck
|
|
//
|
|
// Created by Ilyas Hallak on 02.08.25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct CustomTextFieldStyle: TextFieldStyle {
|
|
func _body(configuration: TextField<Self._Label>) -> some View {
|
|
configuration
|
|
.padding()
|
|
.background(Color(.systemGray6))
|
|
.clipShape(RoundedRectangle(cornerRadius: 12))
|
|
.overlay(
|
|
RoundedRectangle(cornerRadius: 12)
|
|
.stroke(Color(.systemGray4), lineWidth: 1)
|
|
)
|
|
}
|
|
}
|