์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- TCA
- Xcode
- CollectionView
- ํจ์คํธ์บ ํผ์ค
- reactorkit
- RxSwift
- UIKit
- raywenderlich
- Lv2
- SwiftUI
- ๋ฐฑ์ค
- node.js
- ํ๋ก๊ทธ๋๋จธ์ค
- realm
- Flutter
- BOJ
- swift
- MVVM
- BFS
- XCTest
- tableView
- ios
- visionOS
- designpattern
- SnapKit
- Swfit
- arkit
- rxcocoa
- Kuring
- combine
- Today
- Total
๋ชฉ๋กโ ๏ธ deprecated โ ๏ธ/Calendar (5)
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..
UITableView BackgroundView didTapped โ ์ด๋ฒ์๋ ํ ์ด๋ธ ๋ทฐ์์ ์ ๋ฐ๊นฅ ๋ถ๋ถ์ ํฐ์น๋ฅผ ์ ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํด์ ์์๋ณด์. โ ๋ด๊ฐ ํด๊ฒฐํ ๋ฐฉ๋ฒ์ ์ฝ๋๋ ์๊ฐ๋ณด๋ค ๊ฐ๋จํ๋๋ฐ let tableView = UITableView() let didTapView = UITapGestureRecognizer( target: self, action: #selector(didTapView) ) tableView.backgroundView = UIView() tableView.backgroundView?.addGestureRecognizer(didTapView) @objc func didTapView() { print("DidTap") dismiss(animated: false, complet..
Swift Calendar ์๊ณ ๋ฆฌ์ฆ ๊ตฌํํ๊ธฐ โ ์ด๋ฒ์๋ ํด๋นํ๋ ๋ ๋์ ๋ฌ์ ์ฃผ๋ฉด ์ฒซ ๋ ์ ์์ผ๊ณผ ๋ง์ง๋ง ๋ ๊ณผ ๋ง์ง๋ง ๋ ์ ์์ผ์ ์ฐพ๋ ์๊ณ ๋ฆฌ์ฆ์ ๊ตฌํด๋ณด์. โ ์ฝ๋ func calendarCellCount(year: Int, month: Int) { let date = Date(timeIntervalSinceNow: 0) var calendar = Calendar.current calendar.locale = Locale(identifier: "ko_kr") // ์ฌ๊ธฐ์ ๊ธฐ์ ํ์ง ์์ ๋ ์ง๋ 1๋ก ์ด๊ธฐํ๊ฐ ๋๋ค let components = calendar.dateComponents([.year, .month], from: date) let myDateComponents = DateComponents..
collectionViewCell ์ฌ์ด์ ๊ณต๋ฐฑ์์ ๊ธฐ โ collectionViewCell ์ฌ์ด์ ๊ณต๋ฐฑ์์ ๊ธฐ ์๋์ ์ฝ๋๋ฅผ ์ ์ธํ๋ฉด ์ ๋ ๊ฒ ๋น ๊ณต๊ฐ์ด ์๊ธฐ๊ฒ ๋๋ค. var calendarList: UICollectionView = { let layout = UICollectionViewFlowLayout() let collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout) collectionView.register(CalendarCell.self, forCellWithReuseIdentifier: CalendarCell.identifier) collectionView.isScrollEnabled = false collectio..
Device width, height in safeAreaLayoutGuide โ ๋๋ฐ์ด์ค์์ width์ height๋ฅผ ๊ตฌํด๋ณด์. ์๋ ์ด๊ฑธ ์ ํ๋๋ฉด ๋ด๊ฐ ๋ค๋ฅธ ์ฑ์ ์ฌ์ฉํ๊ณ ์๋๋ฐ, ๊ฐ์๊ธฐ ๋๋ฌด ๊ถ๊ธํ์ ๋๋ฐ์ด์ค์ ํฌ๊ธฐ๋ UIScreen.main.bounds.widht UIScreen.main.bounds.height ์์ ์ฝ๋๋ก ๊ตฌํ ์ ์๋ค. ๋ค๋ง, safeArea์ ๋ํ ๋ถ๋ถ์ ๊ณ ๋ คํ์ง ์์์ ๋ด๊ฐ ์ํ๋ UI๊ฐ ๋ํ๋์ง ์์ ์ ์๋ค. ํนํ collectionView์ฌ์ฉ์์ ๋์ฑ ๊ทธ๋ฌ๋๋ฐ ์๋์ ๊ฐ์ด ์ฝ๋๋ฅผ ์์ฑํด์ฃผ๋ฉด safeArea๋ฅผ ๊ณ ๋ คํ ์ ์๋ค. func collectionView(_ collectionView: UICollectionView, layout collectionViewL..