목록개발_iOS/스위프트 (38)
소피it블로그
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/swift/managing-a-shared-resource-using-a-singleton Apple Developer Documentation developer.apple.com 단 하나의 공유된 클래스 인스턴스를 사용하여 공유 자원에 접근할 수 있게 하기 1. 개요 싱글턴은 전역적으로 접근 가능한 클래스의 공유 인스턴스를 제공하기 위해 사용한다. 효과음을 재생하기 위한 오디오 채널이나 HTTP 요청을 만들기 위한 네트워크 매니저처럼, 앱 전체에서 공유되는 자원이나 서비스에 접근하는 공통된 방법으로써 자신만의 싱글턴을 만들 수도 있다. 2. 싱글턴 생성하기 간단한 싱글턴은 static 타입 프라퍼티를 통해 생성하는데, 이는 동시..
https://docs.swift.org/swift-book/LanguageGuide/Extensions.html Extensions — The Swift Programming Language (Swift 5.7) Extensions Extensions add new functionality to an existing class, structure, enumeration, or protocol type. This includes the ability to extend types for which you don’t have access to the original source code (known as retroactive modeling). Extensions docs.swift.org 익스텐션은 이미 ..
https://docs.swift.org/swift-book/LanguageGuide/TypeCasting.html Type Casting — The Swift Programming Language (Swift 5.7) Type Casting Type casting is a way to check the type of an instance, or to treat that instance as a different superclass or subclass from somewhere else in its own class hierarchy. Type casting in Swift is implemented with the is and as operators. These tw docs.swift.org 타입 ..