PropertyWrapper란 Swift5.1부터 추가된 기능입니다. Annotation을 활용하여 감싸져(Wrapping)되어있는 값을 사용하는 개념입니다. 사실 용어와 원리가 어렵지 실제 사용하는 구현레벨에서는 생각보다 어렵지 않습니다. 먼저 우리에게 Int형 데이터가 필요하다고 가정해보겠습니다.
@WhateverDoublevar age:int
스위프트나 IOS에 익숙하지 않으신분들이라면 조금 도움이될만한 내용같아 원작자의 허락을맡고 내용을 번역하였습니다. 다소 의역이 섞여있어도 양해부탁드립니다.😓😓😓