opaque type1 [Swift] Opaque Type이란 SwiftUI를 보면 body에 some 키워드가 붙은걸 볼 수 있습니다. 이게 뭔지 궁금해져서 찾아보고 정리하고자 합니다 🤔 참고 자료 : https://docs.swift.org/swift-book/LanguageGuide/OpaqueTypes.html Opaque Types — The Swift Programming Language (Swift 5.6) Opaque Types A function or method with an opaque return type hides its return value’s type information. Instead of providing a concrete type as the function’s return type, the return value is desc.. 2022. 4. 12. 이전 1 다음