일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- UICollectionView
- RxCocoa
- Human interface guide
- ios
- Refactoring
- Xcode
- UITextView
- swiftUI
- uitableview
- 클린 코드
- 리펙토링
- 리팩토링
- 애니메이션
- clean architecture
- uiscrollview
- combine
- rxswift
- collectionview
- MVVM
- HIG
- tableView
- SWIFT
- swift documentation
- Clean Code
- Observable
- map
- Protocol
- 스위프트
- 리펙터링
- ribs
- Today
- Total
목록2025/02 (4)
김종권의 iOS 앱 개발 알아가기

그라데이션 넣는 방법SwiftUI의 LinearGradient를 사용하여 그라데이션 적용LienearGradient는 단어 그대로 선형적인 그라데이션이며, 3가지의 init이 존재@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)@frozen public struct LinearGradient : ShapeStyle, View, Sendable { public init(gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint) public init(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint) public init(..

if, else 문을 쓰는 케이스만약 아래처럼 버튼을 눌렀을 때 특정 뷰에 애니메이션을 주어야하는 경우?구현 아이디어뷰를 만들 때 if, else문이 없이 아래처럼 animation을 주는 방법도 존재버튼이 눌릴때마다 isFlipped 값을 변경@State var isFlipped = falseText("🚀 SwiftUI Power!") .font(.largeTitle) .fontWeight(.bold) .foregroundColor(isFlipped ? .blue : .purple) .scaleEffect(isFlipped ? 1.5 : 0.5) .rotationEffect(.degrees(isFlipped ? 360 : -180)) .opacity(isFlipped ..

SwiftUI에서 키보드 높이 구하는 방법Combine을 사용하지 않으면 KeyboardInfo라는 클래스에서 기존 UIKit방식대로 NotificationCenter로 등록하는 방법이 있음public class KeyboardInfo: ObservableObject { public static var shared = KeyboardInfo() @Published public var height: CGFloat = 0 private init() { NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardChanged), name: UIApplication.keyboardWillS..

deprecated 옵션 기초 개념만약 새로운 함수가 필요하여 기존에 사용하던 함수는 deprecated되었다는 의미를 개발자에게 주고 싶은 경우 아래처럼 @availble(*, deprecated)를 사용하여 알려주는 방법이 존재class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() deprecatedFunc() deprecatedFunc2() } @available(*, deprecated) func deprecatedFunc() { } @available(*, deprecated, message: "새로운 A ..