iOS/Swift [Swift] @discardableResult - @dis cardableResult - 함수의 반환 값을 무시해도 된다고 선언할 때 사용 @discardableResult func discardableResultSay(_ something: String) -> String{ print(something) return something } discardableResultSay("hi") // "hi" 728x90 공유하기 게시글 관리 구독하기Joey의 블로그 'iOS > Swift' 카테고리의 다른 글 [Swift] Core Data (0) 2023.08.21 [Swift] User Notifications (0) 2023.08.06 [Swift] Date / DateFormatter (0) 2023.07.15 [Swift] UserDefault (0) 2023.07.15 [Swift] Task, await, async (0) 2023.05.20 Contents 당신이 좋아할만한 콘텐츠 [Swift] Core Data 2023.08.21 [Swift] User Notifications 2023.08.06 [Swift] Date / DateFormatter 2023.07.15 [Swift] UserDefault 2023.07.15 댓글 0 + 이전 댓글 더보기