SearchView.swift 467 B

1234567891011121314151617181920212223
  1. //
  2. // SearchView.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/10/1.
  6. //
  7. import UIKit
  8. class SearchView: UIView {
  9. @IBOutlet weak var searchField: UITextField!
  10. override func awakeFromNib() {
  11. super.awakeFromNib()
  12. self.searchField.attributedPlaceholder = NSAttributedString.init(string: self.searchField.placeholder ?? "", attributes: [NSAttributedString.Key.foregroundColor:UIColor.color(hex: "#A1A9C7")])
  13. }
  14. }