Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrey Plotnikov drucelweisse

View GitHub Profile
@drucelweisse
drucelweisse / CustomTextFieldStyle.swift
Created Jan 24, 2022
SwiftUI CustomTextFieldStyle example
View CustomTextFieldStyle.swift
import SwiftUI
typealias CustomTextFieldStyle = ViewModifier
extension View {
func customTextFieldStyle<S>(_ style: S) -> some View where S: CustomTextFieldStyle {
modifier(style)
}
}
@drucelweisse
drucelweisse / ContentView.swift
Created Oct 3, 2021
iOS 15 sheet, fullscreen bug
View ContentView.swift
import SwiftUI
struct ContentView: View {
enum Sheet: String, Identifiable {
var id: String {
rawValue
}