AutoCat/AutoCat/SwiftUI/UISearchTextField+Dumb.swift

35 lines
679 B
Swift

//
// UISearchTextField+Dumb.swift
// AutoCat
//
// Created by Selim Mustafaev on 22.02.2025.
// Copyright © 2025 Selim Mustafaev. All rights reserved.
//
#if canImport(UIKit)
import UIKit
#endif
#if canImport(AppKit)
import AppKit
#endif
#if !os(macOS)
extension UISearchTextField {
// crude and dirty, but tolerable for now
open override var frame: CGRect {
didSet {
self.smartQuotesType = .no
self.smartDashesType = .no
self.smartInsertDeleteType = .no
self.autocorrectionType = .no
self.autocapitalizationType = .none
self.spellCheckingType = .no
}
}
}
#endif