일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- combine
- arkit
- ios
- visionOS
- 패스트캠퍼스
- 백준
- XCTest
- SwiftUI
- TCA
- node.js
- Lv2
- UIKit
- realm
- Xcode
- rxcocoa
- Kuring
- raywenderlich
- SnapKit
- CollectionView
- designpattern
- Swfit
- BOJ
- Flutter
- swift
- RxSwift
- reactorkit
- 프로그래머스
- tableView
- MVVM
- WWDC24
- Today
- Total
목록apple/Docs, iOS, Swift (54)
lgvv98
New access modifier: package Introduction 현재 다른 모듈에서 특정 심볼에 접근하기 위해서는 public으로 정의되어야 함. public 패키지 내외부 모두에서 접근 가능하기에 바람직하지 않음. 따라서 새로운 접근제어자를 만들어 심볼의 범위를 더 명확하게 하고자 함. Swift 5.9에서 도입 Motivation Module Engine in gamePkg: public struct MainEngine { public init() { ... } // `public`으로 의도된 프로퍼티 public var stats: String { ... } // 동일한 패키지의 `Game`에서만 접근할 수 있는 `run` 함수 public func run() { ... } } Modul..
[Natural Language] 텍스트 간 유사점 찾기 Swift 언어를 사용해 단어 또는 문장 사이의 의미적 거리를 계산 단어나 문장 간의 의미적 유사성을 찾으면 앱의 사용자 환경을 개선하는 데 도움이 될 수 있음. 예를 들어, 검색어 '구름'이 '하늘'이라는 단어와 관련이 있다는 것을 알고 검색어를 확장하여 더 관련성 높은 결과를 표시함으로써 특정 사진을 검색하는 경험을 개선가능. 자연어 텍스트 사이의 유사점을 찾으려면 텍스트 임베딩을 사용. 임베딩은 단어 또는 문장과 같은 문자열을 벡터 공간에 매핑하는 것으로, 의미적으로 유사한 문자열은 벡터가 유사하므로 벡터 공간에서 서로 더 가까움. - 즉, 0에 가까울수록 유사함. 임베딩은 다음과 같은 작업에 사용 예를 들어, 검색 쿼리를 확장하기 위해 주어..
[Natural Language] Overview - Overview - tokenizing-natural-language-text - identifying-the-language-in-text 자연어 텍스트를 분석하고 언어별 메타데이터 추론 자연어 프레임워크는 다양한 언어와 스크립트를 지원하는 다양한 자연어 처리(NLP) 기능을 제공. 이 프레임워크를 사용하여 자연어 텍스트를 단락, 문장 또는 단어로 분류하고 품사, 어휘 클래스, 어휘, 스크립트 및 언어와 같은 해당 세그먼트에 대한 정보에 태그를 지정할 수 있음. 이 프레임워크를 사용하여 다음과 같은 작업을 수행 - 언어 식별, 텍스트의 언어를 자동으로 감지 - 토큰화, 텍스트 조각을 언어 단위 또는 토큰으로 나누는 작업 - 품사 태깅: 개별 단어에 ..
SwiftData in UIKit 이번에는 SwiftData를 UIKit에서 사용해보자! CoreData를 학습하기 전에는 SwiftData가 진짜 어려웠는데, 지금은 훨씬 배우기 쉽다. SwiftData를 사용하면 CoreData와 개념적으로 부합하고 있어서 학습하는데 더 쉽게 느껴졌다. 또한 SwiftData가 가진 장점이겠지만, CoreData보다 검색이나 등등이 더 스위프트 언어와 잘 어울린다는 점. 다만 고려해야할 점으로는 @objc를 사용하는 서비스의 경우에는 도입하기가 조금 어려울 수 있다. 이번 실습 결과물 영상 - create: 아이템 추가 - read: 전체 아이템 reloadData - update: 트리 -> 산타의 선물로 데이터 갱신 - delete: 모든 데이터 삭제 실습용 코드..
[iOS] CoreData 정리 2 (실습) (2/2) 1편은 이론, 2편에서는 코드를 작성하면서 알아봅시다. 1편: https://rldd.tistory.com/586 CoreDataSampleCode Core Data를 사용하기 위한 사전준비 - 프로젝트 생성시 이렇게 생성하면 AppDelegate와 SceneDelegate에 기본적으로 Core Data를 위한 코드가 추가됩니다. 먼저 SceneDelegate에서는 백그라운드로 넘어갔을때 현재 컨텍스트를 저장하고 있습니다. 해당 컨텍스트의 hasChanges 즉 변화가 있다면 save를 하고 있습니다. 먼저 persistentContainer 변수를 살펴봅시다. NSPersistentContainer(name: ... )에 name안에는 내가 생성한..
[iOS] CoreData 정리 이론 (1/2) CoreData에 대해서 알아봅시다. 1편에서는 개념과 이론을 중점으로 서술하며, 코드 설명은 2편에서 이어집니다. [iOS] CoreData 정리 이론 (1/2): https://rldd.tistory.com/587 Core Data란? - 코코아 개발 환경을 통해 제공하는 인 메모리(In-Memory) 방식의 데이터 관리 프레임워크. - 이를 통해 데이터베이스 한경과 유사하게 데이터 CRUD과정을 수행할 수 있음. - Apple 생태계 환경(iOS, macOS 등)을 지원하고 objc와 swift언어에서 모두 사용할 수 있음. - 인 메모리 방식 기반이긴 하나, 내부적으로는 SQLite 같은 영구 저장소에 보조적으로 데이터를 저장할 수 있기 때문에 앱이..