// // KMNBotaBaseViewController.swift // PDF Reader Pro // // Created by User-Tangchao on 2024/11/30. // import Cocoa import KMComponentLibrary class KMNBotaBaseViewController: KMNBaseViewController { private lazy var searchButton_: ComponentButton = { let view = ComponentButton() view.properties = ComponentButtonProperty(type: .text_gray, size: .xxs, state: .normal, isDisable: false, onlyIcon: true) return view }() private lazy var headerSearchView_: KMNBotaHeaderSearchView? = { let view = KMNBotaHeaderSearchView.createFromNib() return view }() var searchButton: ComponentButton { get { return searchButton_ } } var headerSearchView: KMNBotaHeaderSearchView? { get { return headerSearchView_ } } var searchGroupView: ComponentGroup? var searchGroupTarget: ComponentButton? override func viewDidLoad() { super.viewDidLoad() // Do view setup here. } func showHeaderSearch() { headerSearchView?.isHidden = false } func hideHeaderSearch() { headerSearchView?.clearInputData() headerSearchView?.isHidden = true } }