250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- async
- 스트럭트
- 동시성
- collectionview
- uikit
- 구름톤 유니브
- GCD
- mvc
- Kingfisher
- 앱개발
- struct
- 학과별커뮤니티
- 옵셔널
- CS
- 이론
- SwiftUI
- MVVM
- 세종대학교
- 네트워크
- 프로토콜
- swift
- 기초문법
- RxSwift
- 실습
- 대표
- ios
- Optional
- WeatherKit
- 토이프로젝트
- 반응형
Archives
- Today
- Total
목록set (1)
스윞한 개발자

스위프트에서는 typealias를 사용하여 타입에 대한 별칭을 만들 수 있습니다. typealias는 기존 타입에 대해 더 읽기 쉬운 이름을 지정하는 데 사용됩니다. typealias NewName = ExistingType NewName은 ExistingType에 대한 새로운 이름으로 사용됩니다. typealias UserID = String typealias Age = Int func printUserInfo(userID: UserID, age: Age) { print("User ID: \(userID), Age: \(age)") } let id: UserID = "user123" let userAge: Age = 30 printUserInfo(userID: id, age: userAge) // 출력..
Swift 이론
2024. 1. 23. 14:53