Raywenderlich
-
Chapter 4: Custom Asynchronous Sequences With AsyncStreamRaywenderlich/Modern Concurrency in Swift 2023. 1. 30. 20:07
Version Swift 5.5, iOS 15, Xcode 13 이전(previous) 장(chapters)에서 앱(apps)에 비동기(asynchronous) 코드(code)를 통합(integrate)하는 몇 가지(few) 다른(different) 방법을 배웠다(learned). 지금쯤이면(by now), async 함수(functions)를 호출(calling), 작성(writing)하고 비동기(asynchronous) 시퀀스(sequences)를 반복(iterating over)하는 것이 수월(comfortable)하기 바란다(hopefully). 이 장(chapter)에서는 AsyncStream을 사용하여 고유한 사용자 정의(custom) 비동기(async) 시퀀스(sequences)를 생성(cr..
-
Chapter 3: AsyncSequence & Intermediate TaskRaywenderlich/Modern Concurrency in Swift 2023. 1. 2. 17:40
Version Swift 5.5, iOS 15, Xcode 13 이 책 전체에서(throughout) 비동기(asynchronous) 프로그래밍(programming)과 관련한 개발을 더 쉽게 하기 위해 비동기(async) 시퀀스(sequences)를 사용할 것이다. 비동기(async) 시퀀스(sequences)를 사용하면, Swift 시퀀스(sequence)를 반복(iterating over)하는 것처럼 간단하게(as simple as) 비동기(asynchronous) 결과(results)를 사용할 수 있다. 1장(chapter), "Why Modern Swift Concurrency?"에서 이미(already) 비동기(async) 시퀀스(sequences)를 간략하게(briefly) 시도했지만(tri..
-
Chapter 2: Getting Started With async/awaitRaywenderlich/Modern Concurrency in Swift 2022. 12. 21. 18:27
Version Swift 5.5, iOS 15, Xcode 13 이제 Swift Concurrency가 무엇이고 왜 사용해야 하는지 알아보았으므로, 이 장(chapter)에서는 실제 async/await 구문(syntax)과 비동기(asynchronous) 실행(execution)을 조정(coordinates)하는 방법에 대해 자세히 살펴본다. 또한 Task 유형(type)과 이를 사용하여 새로운 비동기(asynchronous) 실행(execution) 컨텍스트(contexts)를 생성(create)하는 방법에 대해 알아본다. 하지만(though), 그 전에 새로운 async/await 구문(syntax)이 아닌 Swift 5.5 이전의 동시성(concurrency)을 배우는 데 잠시 시간을 할애(spe..
-
Chapter 1: Why Modern Swift Concurrency?Raywenderlich/Modern Concurrency in Swift 2022. 12. 15. 18:08
Version Swift 5.8, iOS 16, Xcode 14 Apple이 마지막으로 비동기(asynchronous) 프레임워크(framework)에 대한 큰 작업(big deal)을 한 것은 2009년 Mac OS X Snow Leopard와 함께 GCD(Grand Central Dispatch)가 출시(came out)되었을 때였다. GCD는 2014년에 출시(launch)된 Swift가 처음부터 동시성(concurrency)과 비동기성(asynchrony)을 지원하도록 도움(support for)이 되었지만, 그 지원(support)은 Swift(native)가 아니라 Objective-C의 요구 사항(needs)과 기능(abilities)을 중심으로 설계(designed)되었다. Swift는 해..
-
Chapter 10: StructuresRaywenderlich/Swift Apprentice 2022. 10. 22. 17:36
Version Swift 5.5, iOS 15, Xcode 13 지금까지 Swift의 몇 가지 기본적인(fundamental) 구성 요소(building blocks)를 다루었다(covered). 변수(variables), 조건문(conditionals), 문자열(strings), 함수(functions), 컬렉션(collections)을 사용하여 세계를 정복(conquer)할 준비가 되었다. 뭐... 거의(well, almost). 복잡한(complex) 작업(tasks)을 수행(perform)하는 대부분의 프로그램(programs)은 더 높은(higher) 수준(levels)의 추상화(abstraction)에서 이점(benefit)을 얻는다(tasks). Int, String, Array 외에도 대부..
-
Chapter 9: StringsRaywenderlich/Swift Apprentice 2022. 9. 29. 11:12
Version Swift 5.5, iOS 15, Xcode 13 지금까지(so far), 텍스트(text)를 표현하기(representing) 위해 String 유형(type)에 제공(offer)해야 하는 것이 무엇인지 간략하게(briefly) 살펴보았다. 텍스트(text)는 사람들의 이름(names), 주소(addresses), 책의 단어(words)와 같이 어디에나 있는(ubiquitous) 데이터 유형(data type)이다. 이 모든 것은 앱(app)이 처리(handle)해야 할 수 있는 텍스트(text)의 예(examples)이다. String이 어떻게 작동(works)하고 무엇을 할 수 있는지 더 깊이(deeper) 이해(understanding)할 가치(worth)가 있다. 이 장(chapt..
-
Chapter 8: Collection Iteration With ClosuresRaywenderlich/Swift Apprentice 2022. 8. 29. 10:48
Version Swift 5.5, iOS 15, Xcode 13 이전에(earlier), 함수(functions)에 대해 배웠다(learned). 그러나(but) Swift에는 코드를 재사용 가능한(reusable) 덩어리(chunks)로 분할(break up)하는 데 사용할 수 있는 또 다른 객체(object)인 클로저(closure)가 있다. 이는 컬렉션(collections)을 다룰 때(dealing with) 도움(instrumental)이 된다. 클로저(closure)는 단순히(simply) 이름 없는 함수(function)로, 변수(variable)에 할당(assign)하여 다른 값(value)처럼 전달(pass)할 수 있다. 이 장(chapter)은 클로저(closures)가 얼마나 편리(c..
-
Chapter 7: Arrays, Dictionaries & SetsRaywenderlich/Swift Apprentice 2022. 8. 27. 03:10
Version Swift 5.5, iOS 15, Xcode 13 이 섹션(section)의 도입부(introduction)에서 설명(discussed)한 것처럼 컬렉션(collections)은 여러 값(values)을 함께(together) 저장(store)할 수 있는 유연한(flexible) "컨테이너(containers)"이다. 이러한 컬렉션(collections)에 대해 논의(discussing)하기 전에 가변(mutable) 컬렉션과 불변(immutable) 컬렉션(collections)의 개념(concept)을 이해(understand)해야 한다. 컬렉션(collection) 유형(types) 간의 차이(differences)을 알아보는(exploring) 과정에서, 추가(adding) 또는 검..
-
Core Bluetooth Tutorial for iOS: Heart Rate MonitorRaywenderlich/Articles 2021. 11. 19. 18:49
https://www.raywenderlich.com/231-core-bluetooth-tutorial-for-ios-heart-rate-monitor Core Bluetooth Tutorial for iOS: Heart Rate Monitor In this Core Bluetooth tutorial, you’ll learn how to discover, connect to, and retrieve data from compatible devices like a chest-worn heart rate sensor. www.raywenderlich.com Version Swift 4.0, iOS 11, Xcode 9 Update note: 이 튜토리얼(tutorial)은 Jawwad Ahmad가 Xcode..
-
Chapter 6: OptionalsRaywenderlich/Swift Apprentice 2021. 10. 8. 10:42
Version Swift 5.5, iOS 15, Xcode 13 지금까지 다뤘던(dealt with) 모든 변수(variables)와 상수(constants)는 구체적인 값(concrete values)을 가지고 있었다. var name과 같은 문자열(string) 변수(variable)가 있다면 "Matt Galloway"와 같은 문자열(string) 값(value)이 연결(associated)된다. ""와 같은 빈 문자열(empty string)도, 참조(refer)할 수 있는 값(value)이 있었다. 이것이 Swift에 내장된(built-in) 안전 기능(safety features) 중 하나이다. 유형(type)이 Int 또는 String이라면, 실제(actual) 정수(integer) 또는 문..