목록스위프트 (31)
소피it블로그

팀 프로젝트로 낸 앱 한글킹과 관련하여, 공식적으로는 끝난 프로젝트지만 몇 가지 중요한 업데이트를 준비하고 있다. 고칠 점이 아직 많이 있지만 무엇보다도 아무래도 외국인들을 타겟으로 하는 한글 공부 앱이기 때문에 최대한 다양한 언어로 로컬라이징하는 게 중요하다고 생각한다. 그래서 나를 시작으로 팀원들끼리 각각 언어 두 개씩을 맡아 번역을 하고(=구글 번역기를 돌리고) 앱에 새 언어를 업뎃하는 방식으로 작업을 진행하기로 했다. 지난 주에 끝내야 했지만 바쁘다는 핑계로 어제가 되어서야 시작했다. 가위바위보에서 져서 첫 타자가 되었는데, 우리 프로젝트는 번역되어야 할 문자열들이 스토리보드와 뷰컨트롤러에 불규칙적으로 나뉘어 적혀있었다. 따라서 아무 가이드라인 없이 모두가 맨땅에 헤딩하듯 시작한다면 쓸 데 없는 ..
https://developer.apple.com/documentation/dispatch/dispatchqueue Apple Developer Documentation developer.apple.com DispatchQueue 앱의 메인 스레드나 백그라운드 스레드에서 순차적 혹은 동시적으로 실행되는 태스크들을 관리하는 객체 1. 선언 class DispatchQueue : DispatchObject 2. 개요 디스패치 큐는 앱이 블록 객체의 형태로 태스크를 제출할 수 있는 FIFO(선입선출) 큐이다. 디스패치 큐는 태스크를 순차적으로 혹은 동시적으로 실행한다. 디스패치 큐에 제출된 작업은 시스템이 관리하는 스레드의 풀에서 실행된다. 앱의 메인 스레드를 대변하는 디스패치 큐를 제외하면, 시스템은 태스크..
https://docs.swift.org/swift-book/LanguageGuide/AccessControl.html Access Control — The Swift Programming Language (Swift 5.7) Access Control Access control restricts access to parts of your code from code in other source files and modules. This feature enables you to hide the implementation details of your code, and to specify a preferred interface through which that code can be docs.swift.org ..
https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html Control Flow — The Swift Programming Language (Swift 5.7) Control Flow Swift provides a variety of control flow statements. These include while loops to perform a task multiple times; if, guard, and switch statements to execute different branches of code based on certain conditions; and statements such as break a docs.swift.org gua..
https://docs.swift.org/swift-book/LanguageGuide/BasicOperators.html Basic Operators — The Swift Programming Language (Swift 5.7) Basic Operators An operator is a special symbol or phrase that you use to check, change, or combine values. For example, the addition operator (+) adds two numbers, as in let i = 1 + 2, and the logical AND operator (&&) combines two Boolean values, as in i docs.swift.o..

https://developer.apple.com/documentation/coredata/setting_up_a_core_data_stack Apple Developer Documentation developer.apple.com 앱의 객체들을 관리하고 저장해주는 클래스를 셋업해보자. 1. 개요 데이터 모델 파일을 생성한 후에 앱의 모델 계층을 통합적으로 지원하는 클래스들을 생성하라. 이 클래스들을 통틀어 Core Data stack 이라고 부른다. NSManagedObjectModel의 인스턴스는 앱의 타입, 프라퍼티, 관계를 묘사하는 모델 파일을 나타낸다. NSManagedObjectContext의 인스턴스는 앱의 타입의 인스턴스들의 변화를 감지한다. NSPersistentStoreCoordinat..