swift(26)
-
[์ด์์ฒด์ ] Synchronization in Swift
Synchronization in Swift iOS programming์์ ํ์ฉํ๋ ํจ์๋ค์ ์๋ฏธ๋ฅผ OS ์์ ์์ ๋ฐฐ์ด multi-thread, process ๊ทธ๋ฆฌ๊ณ ๋์์ฑ ๊ฐ๋ ์ ํตํด ๋ณด๋ค ์ฌ์ธต์ ์ผ๋ก ์ดํดํ ์ ์์๋ค :)
2023.04.17 -
[Apple] Apple Design Challenge (2) Workflow
2023. 03. 06 ์์์ผ Apple design challenge (Asia Pacific) ๋ค๋น๊ฒ์ด์ ๊ณผ ์ํฌํ๋ก์ฐ Apple Design Resource 1. Essential design principles https://developer.apple.com/wwdc17/802 2. Explore navigation design for iOS https://developer.apple.com/videos/play/wwdc2022/10001/ 3. Love at first launch https://developer.apple.com/wwdc17/816 4. Human Interface Guidelines https://developer.apple.com/design/human-interface-g..
2023.03.10 -
[Swift] SnapKit vs AutoLayout & Pros and cons of using 3rd-Party
SnapKit vs AutoLayout - ์ฝ๋ Base๋ก Programmaticallyํ๊ฒ UI๋ฅผ ๊ตฌํํ ๋ ๋ง์ฃผ์น๋ ๊ณ ๋ฏผ SnapKit is a powerful auto layout library with a minimal amount of code to minimize developer work in managing constraints. SnapKit doesn't really solve any problems inherent with IB. It all boils down to user preference, though my personal recommendation is to stick to IB because that is the standard layout tool and it's very..
2023.01.26 -
[Swift] CocoaPod vs Swift Package Manager
1. CocoaPod vs Swift Package Manager Podfile์ ํตํด ํจํค์ง ์ค์น๋ฅผ ํ๋ ๊ฒ๊ณผ, XCode ๋ด๋ถ์์ ํจํค์ง ๋งค๋์ ๋ฅผ ํตํด ์ค์นํ๋ ๊ฒ ๋์ ์ฐจ์ด(์ฅ๋จ์ )๊ฐ ๊ถ๊ธํ๋ค. ๋ฌด์์ ํจํค์ง ๋งค๋์ ๊ฐ ๋ ์ข์ง! ๋ณด๋ค๋, ์ ์ข์์ง ๊ถ๊ธํด์ ์ฐพ์๋ดค์ต๋๋ค :) 1) CocoaPod โณ๏ธ Advantages You can search for a dependency on the official CocoaPods website. Supports both Dynamic Frameworks and Static Libraries (since version 1.5.0). Automatically manage a dependency’s dependencies. If a dependency relie..
2023.01.26 -
[Swift] tap gesture
[ ๊ณต์ ๋ฌธ์ ์ฝ๊ธฐ ] https://developer.apple.com/documentation/uikit/uiview/1622496-addgesturerecognizer https://developer.apple.com/documentation/uikit/uitapgesturerecognizer // // UniverseSearchViewController.swift // Tars // // Created by ๊น์ํ on 2022/11/02. // import UIKit import SceneKit import ARKit enum Mode { case explore case search(planet: String) var titleText: String { switch self { case .exp..
2022.11.21 -
[UI-Kit] CollectionView Cell Selection / Deselection
# shouldSelecItemAt func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool { guard let cell = collectionView.cellForItem(at: indexPath) as? SelectPlanetCollectionViewCell else { return true } if cell.isSelected { // TODO: ํ์ ๋ชจ๋๋ก ๋ณํ cell.planetNameLabel.textColor = .white cell.backgroundView = nil self.navigationController?.topViewController?.titl..
2022.11.15 -
[iOS APP] ๋น๋๊ธฐ ์ฒ๋ฆฌ๋ฅผ ํ์ฉํ ์๋ ์ดํ _ UMC 6์ฃผ์ฐจ ๋ฏธ์
https://github.com/SohyeonKim-dev/UMC-iOS/tree/main/Week6 GitHub - SohyeonKim-dev/UMC-iOS: ๐ UMC 3rd ๊ฒฝํฌ๋ - iOS Challenge ๐ UMC 3rd ๊ฒฝํฌ๋ - iOS Challenge . Contribute to SohyeonKim-dev/UMC-iOS development by creating an account on GitHub. github.com ์์ ์ฝ๋: https://hkoonsdiary.tistory.com/14 Git-hub: https://github.com/SohyeonKim-dev/UMC-iOS/tree/main/Week6 ๋น๋๊ธฐ ์ฒ๋ฆฌ๋ฅผ ํ์ฉํ์ฌ Label๊ณผ datePicker ์์์ ๋ณ๊ฒฝํ๋ค. +..
2022.11.02 -
[Swift] CollectionView Cell _ Lingo Feedback
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: SelectPlanetCollectionViewCell.identifier, for: indexPath) as? SelectPlanetCollectionViewCell else { return UICollectionViewCell() } let selectedPlanetName = planetList[indexPath.row].planetName let selected..
2022.11.01 -
UMC iOS 4์ฃผ์ฐจ ์ธ๋ฏธ๋ (10/10 ์์์ผ)
๊ฐ์๋ก ๋์ฒด ๋ฆ์ ์๊ฐ์ ์ฌ๋ผ์์, ๋ค์๋ ๋ค์๋ค. Table view, Collection view -> Protocol ๋ฏธ์ ์ ๊ฒ ๋! ์ค๋์ ๋ด์ฉ ~ - ๋๋ ๋ฐฅ๋จน์ธ ์ค์ ํ๋ฉด ๊ตฌํํ ๋ table view ํ์ฉํจ ! : Cell ๊ด๋ จํ์ฌ ์ด๋ ค์์ ๊ฒช์๋ ๊ธฐ์ต์ด ๋๋ค.. - ์ฌ์ฌ์ฉ Queue : ๋ค์์ ์ค๋ช - ๋์ผํ ๋ด์ฉ๋ค์ ๋์ดํ ๋ ์ฌ์ฉํ๋ฉด ๋๋ค. - ์ค์ ํ๋ฉด, ์นด์นด์คํก ํ ํ๋ฉด ๋ฑ๋ฑ - Table view : swift option (๋ฉ๋ชจ ์ญ์ , ์นด์นด์ค ์ฑํ ๋ฐฉ ๋๊ฐ๊ธฐ ๋ฑ) - Collection view : paging option (์ดํ ์๋จ์ ๋ฐฐ๋ -> ํ์ด์ง ์ค์์ดํ ๊ฐ๋ฅ) - ๋ ๋ค Scroll view๋ฅผ ์์๋ฐ๊ณ ์๋ค. - table view๋ก ๊ตฌํ ๊ฐ๋ฅํ ๊ฒ์ collection..
2022.10.11 -
UMC iOS ์ธ๋ฏธ๋ 3์ฃผ์ฐจ (10/3, ๊ฐ์๋ก ๋์ฒด)
- present - ๋ชจ๋ฌ์ฐฝ์ฒ๋ผ ์๋์์ ์๋ก ์ฐฝ์ด ๋ฌ๋ค - push - ์ค๋ฅธ์ชฝ์ผ๋ก ํ๋ฉด ์ ํ (์์ธ๋ค) - back ๋ฒํผ ์๋ ์์ฑ - result Label : UI Label, UI๋ก ๊ทธ๋ ค์ง๋ ๋ถ๋ถ -> Label ์ ํ์๋๋ ๊ฐ์ด๋๊น, IBOutlet์ผ๋ก ์ ์ธ - resultString : ๊ทธ๋ฆด ๋ด์ฉ์ ๋ด๋ ๋ณ์ (๋ฐ์ดํฐ ๋ถ๋ถ), var๋ก ์ ์ธ - ์๋ก์ด ๊ฐ์ ์ธ๋ถ์์ resultString์ผ๋ก ๋ฐ์์จ ๋ค์, ํด๋น ๊ฐ์ Label์ Text ๊ฐ์ผ๋ก ๋๊ธด๋ค. ๋ทฐ์ ์๋ช ์ฃผ๊ธฐ์ ๋ง์ฐฌ๊ฐ์ง๋ก ์ฑ์ ์๋ช ์ฃผ๊ธฐ ๊ฐ๋ ๋ ์๋ค! :) SceneDelegate ํ์ผ์ ๊ธฐ๋ณธ์ ์ผ๋ก ์์ฑ๋์ด์๋ ์ฝ๋๋ค ์ํ๋ ๋์๋ค์ ๋ฃ์ด์ ํ์ฉํ๋ฉด ๋จ
2022.10.04