일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- BOJ
- ios
- BFS
- rxcocoa
- swift
- raywenderlich
- UIKit
- 프로그래머스
- visionOS
- realm
- designpattern
- Kuring
- MVVM
- node.js
- 패스트캠퍼스
- Swfit
- Lv2
- SwiftUI
- reactorkit
- XCTest
- 백준
- RxSwift
- Flutter
- tableView
- combine
- CollectionView
- Xcode
- SnapKit
- arkit
- TCA
- Today
- Total
목록image (2)
lgvv98
How to set Image in SwiftUI ✅ SwiftUI에서 Image를 세팅하는 방법에 대해 알아봅니다. ✅ CircleImageView.swift import SwiftUI struct CircleImageView : View { var body: some View { //Image(systemName: "bolt.circle") // .font(.system(size: 200)) // 시스템 이미지는 font로 크기를 조절함. // .foregroundColor(.yellow) // .shadow(color: .gray, radius: 2, x: 2, y: 10) Image("myImage") .resizable() // 이미지의 크기를 조정해주기 위해서 .scaledToFill() /..
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..