GBA-8-19/CGame/Components/ap_textF.swift
bluesea 66c5202be8 s
2024-06-14 18:12:40 +08:00

34 lines
848 B
Swift

//
// ap_textF.swift
// Hthik
//
// Created by 16 on 2024/5/31.
// Copyright © 2024 Hthik. All rights reserved.
//
import Foundation
import UIKit
class TextFieldModifier {
// TextField
static func setText(of textField: UITextField, to text: String) {
textField.text = text
}
// TextField
static func setTextColor(of textField: UITextField, to color: UIColor) {
textField.textColor = color
}
// TextField
static func setPlaceholder(of textField: UITextField, to placeholder: String) {
textField.placeholder = placeholder
}
// TextField
static func setKeyboardType(of textField: UITextField, to type: UIKeyboardType) {
textField.keyboardType = type
}
}