์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- UIKit
- ios
- RxSwift
- rxcocoa
- raywenderlich
- swift
- MVVM
- Swfit
- CollectionView
- node.js
- ํจ์คํธ์บ ํผ์ค
- Kuring
- SwiftUI
- BOJ
- ํ๋ก๊ทธ๋๋จธ์ค
- visionOS
- Lv2
- BFS
- realm
- designpattern
- Xcode
- XCTest
- SnapKit
- tableView
- ๋ฐฑ์ค
- Flutter
- arkit
- TCA
- reactorkit
- combine
- Today
- Total
๋ชฉ๋กapple/๐ SwiftUI & Combine (26)
lgvv98
[SwiftUI] NavigationLink ํ์ดํ ์์ ๊ธฐ SwiftUI์์ NavigationLink๋ฅผ ์ฌ์ฉํ๋ฉด ๊ธฐ๋ณธ์ ์ธ ํ์ดํ๊ฐ ์๊ธด๋ค. ํด๋น ํฌ์คํ ์ ๋ฐฉ๋ฒ์ ๊ถ๊ทน์ ์ผ๋ก ํ์ดํ๋ฅผ ์์ ๋๊ฒ ์๋๊ณ , ZStack๊ณผ opacity๋ฅผ ํ์ฉํ ์ํ๋ UI๋ฅผ ๊ทธ๋ ค๋ด๋ ๋ฐฉ๋ฒ์ด๋ค. import SwiftUI struct ContentView: View { var body: some View { ZStack(alignment: .leading) { NavigationLink { // destination View } label: { EmptyView() }.opacity(0) Text("๋ด ์์ดํ ") } } } ์๋ ์ด๋ฏธ์ง์ฒ๋ผ ์ฌ์ฉํ ์ ์๋ค.
[SwiftUI] keyboard ์ด๋ฒคํธ ํธ๋ค๋ง ์ฑ ๊ฐ๋ฐ์ ์์ด์ ํค๋ณด๋ ์ํ์ ๋ฐ๋ผ์ ๋ทฐ์ ๋ค๋ฅธ ์ปดํฌ๋ํธ๋ค์ ๋์ด๊ฐ ์กฐ์ ๋๋ ๋ฑ ํค๋ณด๋์ ๊ด๋ จํด์๋ ๊ฝค๋ ๊น๋ค๋กญ๋ค. UIKit์ ์ฌ์ฉํ๋ค๋ฉด - iOS 15 ์ด์: keyboardLayoutGuide๋ฅผ ํ์ฉํ์ฌ ๋ ์ด์์์ ์ก๊ธฐ - iOS 14 ์ดํ: ํค๋ณด๋์ ์ํ์ ๋ฐ๋ผ ํค๋ณด๋์ ๋์ด๋ฅผ ๊ณ์ฐํด์ ๋ทฐ์ ์์น๋ฅผ ์กฐ์ view.keyboardLayoutGuide SwiftUI ์ฌ์ฉ - iOS 15 ์ด์: @FocusState ํ์ฉ - iOS 14 ์ดํ: NotificationCenter์ Combine์ ํ์ฉ ์ํ์ฝ๋ ํค๋ณด๋ ์ํ๋ฅผ ์ฝ์ ์ ์๋๋ก ์๋ ์ฝ๋๋ฅผ ์์ฑ protocol KeyboardReadable { var keyboardPublisher: Any..
- EqutableView๋? > EqutableView๋ ์ด์ ๊ฐ๊ณผ ๋น๊ตํ์ฌ ์ ๊ฐ์ด ์ด์ ๊ฐ๊ณผ ๋์ผํ ๊ฒฝ์ฐ ์์ ์ ๋ฐ์ดํธ๋ฅผ ๋ฐฉ์งํ๋๋ก ์ค๊ณ๋ ๋ทฐ์ ๋๋ค. `iOS 13.0+` `iPadOS 13.0+` `tvOS 13.0` `watchOS 6.0+` `visionOS 1.0+ Beta [apple-docs-EqutableView](https://developer.apple.com/documentation/swiftui/equatableview) ๐ก ๋ค์ด๊ฐ๊ธฐ ์ . - ์๋์ ๊ฐ๋ ์ ๋ํ ์ง์์ด ๋ฐ๋์ ํ์ํจ. ํ์ํ ์ด์ ๋ ๊ธ ์ ์ผ ์๋์์ ์ค๋ช - [Plain ol' Data](https://rldd.tistory.com/551) EqutableView Usage 1. ๋ด๊ฐ EqutableView๋ก ๋ง..
NavigationSplitView https://developer.apple.com/documentation/swiftui/navigationsplitview NavigationSplitView | Apple Developer Documentation A view that presents views in two or three columns, where selections in leading columns control presentations in subsequent columns. developer.apple.com โ ๋ชฉ์ฐจ NavigationSplitView Overview UI ์์ init - NavigationSplitViewVisibility init - NavigationSplitView..
Networking(feat. RestAPI) Combine์ ํ์ฉํด์ ์ฝ๊ฒ ์๋ฒ์ ํต์ ์ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค. ์ด ๊ธ์ ์ ์ผ ์๋ ๋ถ๋ถ์์๋ MVVM์ ๋ํ ๊ณ ์ฐฐ๋ ๋ค์ด ์์ต๋๋ค. ๋์ด๋๋ ์ด 3๊ฐ์ง๋ก ๋๋์ด ์์ต๋๋ค. ํ์ผ์ ํ์ธํด์ฃผ์ธ์! ์ด ํฌ์คํ ์์๋ Refactoring(์)๊ณผ Advanced Model์ ๋ํด์๋ง ์ค๋ช ํฉ๋๋ค. ์์ธํ ์ฝ๋๋ ์๋ ์ฒจ๋ถ ํ์ผ์ ํ์ธํด์ฃผ์ธ์!!! ๐ฅ ๋ชฉ์ฐจ ๐ฅ 1. Refactoring (์) 2. MVVM์ ๋ํ ๊ณ ์ฐฐ(Combine ํ๋ฌ์ฐจ,, 2022.06.11) ๐ ๋ชจ๋ธ // // UserModel.swift // CombineNetworking // // Created by Hamlit Jason on 2022/06/10. // // let user = try?..
Let's study Combine! (feat. SwiftUI) SwiftUI Combine ๊ณต๋ถ โ ์ ํ ๊ณต์ ๋ฌธ์๋ฅผ ๋ฐํ์ผ๋ก ์ ๋ฆฌํ์์ต๋๋ค. https://developer.apple.com/documentation/combine Apple Developer Documentation developer.apple.com โ Combine์ด๋? ์ด๋ฒคํธ ์ฒ๋ฆฌ ์คํผ๋ ์ดํฐ๋ค์ ๊ฒฐํฉํจ์ผ๋ก์จ ๋น๋๊ธฐ ์ด๋ฒคํธ์ ํธ๋ค๋ง์ ์ฌ์ฉ์๊ฐ ๋ค๋ฃน๋๋ค! ์กฐ๊ธ ๋ ์ฝ๊ฒ ๋งํด๋ณด์๋ฉด Combine ํ๋ ์์ํฌ๋ ๊ฒฐ๊ตญ์ ์๊ฐ์ ๋ฐ๋ผ ๊ฐ์ ์ฒ๋ฆฌํ๊ธฐ ์ํด SwiftUI API๋ฅผ ์ ๊ณตํฉ๋๋ค. ๊ฐ์ ๋ฐฉ์ถํ๋ Publisher์ ๊ฐ์ ์์ ํ๋ Subscriber๋ฅผ ํตํด ์ฒ๋ฆฌํฉ๋๋ค. RxSwift๋ฅผ ๊ณต๋ถํ๋ค๋ฉด ๋์ฑ ์ฝ์ต๋๋ค. โ Combine์ ๊ณต..