์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- visionOS
- rxcocoa
- RxSwift
- SwiftUI
- reactorkit
- ํจ์คํธ์บ ํผ์ค
- BOJ
- XCTest
- CollectionView
- realm
- designpattern
- Xcode
- TCA
- ํ๋ก๊ทธ๋๋จธ์ค
- Flutter
- SnapKit
- Kuring
- Lv2
- ios
- MVVM
- UIKit
- Swfit
- ๋ฐฑ์ค
- BFS
- tableView
- swift
- node.js
- arkit
- combine
- raywenderlich
- Today
- Total
๋ชฉ๋กUIButton (2)
lgvv98
UIButton SystemIamge ํฌ๊ธฐ ์กฐ์ โ ๋ฒํผ์ ์ด๋ฏธ์ง๋ฅผ ๋ฃ์ ํ์ ํฌ๊ธฐ ์กฐ์ ํ๋ ์ฝ๋๋ฅผ ์์๋ณด์. โ ์ฝ๋ let taskAddButton: UIButton = { let button = UIButton() let imageConfig = UIImage.SymbolConfiguration(pointSize: 30, weight: .light) let image = UIImage(systemName: "plus", withConfiguration: imageConfig) button.setImage(image, for: .normal) button.tintColor = .white button.layer.cornerRadius = 27.5 button.backgroundColor = #colo..
โ ์ด๋ฒ ์๊ฐ์๋ Button์ 90๋ ํ์ ์ํค๋ ์ฝ๋์ ๋ํด์ ์์๋ณผ ์์ ์ด์ผ private let menuButton = UIButton().then { // 3์ ๋ชจ์(ํ๋ฒ๊ทธ ๋ฒํผ) $0.setImage(UIImage(systemName: "ellipsis"), for: .normal) $0.contentMode = .scaleAspectFit $0.tintColor = .black $0.transform = CGAffineTransform(rotationAngle: .pi * 0.5) } transform ์ชฝ์ ์ฝ๋ ๊ณฑํ๋ ์ซ์์ ๋ฐ๋ผ์ ํ์ ๊ฐ์ด ์ ํด์ง๋ค!