let locationButton: UIButton = {
let button = UIButton(type: .system)
let symbolConfiguration = UIImage.SymbolConfiguration(pointSize: 30, weight: .regular)
let symbol = UIImage(systemName: "plus", withConfiguration: symbolConfiguration)?.withTintColor(.black, renderingMode: .alwaysOriginal)
button.setImage(symbol, for: .normal)
button.contentVerticalAlignment = .fill
button.contentHorizontalAlignment = .fill
return button
}()
'Swift > UIKit' 카테고리의 다른 글
[UIKit] RxSwift로 tableview만들기 (0) | 2023.03.22 |
---|---|
[UIkit] Tableview 코드로 만들기 (0) | 2023.03.21 |
[Swift] RXSwift로 UPDown 만들기 (0) | 2023.03.21 |
[UIkit] 공공데이터 활용하기, serviceKey, Application_ERROR 해결 (0) | 2023.03.14 |
[Swift] IOS 스토리보드없이 코드로만 UI 만들기! (0) | 2023.02.23 |