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
- Firebase
- Notification
- 개발자
- IOS
- Apple
- 한글
- darkmode
- FLUTTER
- Archive
- view
- Swift
- UIButton
- error
- Session
- JPA
- Xcode
- github
- Git
- Code
- 이미지
- 웹뷰
- window
- rxswift
- SwiftUI
- iOS16
- appstore
- Realm
- mac
- MacOS
- geofencing
Archives
- Today
- Total
EEYatHo 앱 깎는 이야기
Swift ) Codable Struct(구조체) 쉽게 만들기 quickType - EEYatHo iOS 본문
iOS, Swift/Tip, Bug, Swift Error
Swift ) Codable Struct(구조체) 쉽게 만들기 quickType - EEYatHo iOS
EEYatHo 2021. 7. 16. 12:59반응형
네트워크 통신을 위한 Codable 구조체 만들 때,
API 스키마 보면서 타이핑 했는데,
한방에 해주는 툴이 있었다.
새삼스럽지만,
경력 많은 분들한테 뭐 배우는 거 진짜 너무 효율적인듯..
홈페이지.
Convert JSON to Swift, C#, TypeScript, Objective-C, Go, Java, C++ and more • quicktype
{ "people": [ { "name": "Atticus", "high score": 100 }, { "name": "Cleo", "high score": 900 }, { "name": "Orly" }, { "name": "Jasper" } ] } Provide sample JSON files, URLs, JSON schemas, or GraphQL queries.
quicktype.io
앱스토어에 quickType이라 검색하면 나온다.
왼쪽에 "서버에서 내려준 JSON 데이터"를
붙혀넣기만 하면, 알아서 만들어준다.
오른쪽 긁어서 복붙하면 끝!
오른쪽에 다양한 옵션들 선택할 수 있는데,
1. Language에서, Explicit CodingKey 어쩌구를 체크 ( 이걸 해야 CodingKey 매핑까지 해준다. )
2. Other에서 변수명 Camel케이스 설정
말고는 건들게 없었다
공짜 툴에 이런 다양한 옵션까지 해주다니.. 개발자분 복받으세욧

'iOS, Swift > Tip, Bug, Swift Error' 카테고리의 다른 글
Swift ) Swipe Back Detect 스와이프 뒤로가기 감지 - EEYatHo iOS (0) | 2021.07.28 |
---|---|
Swift ) file too small (length=0) file 에러 - EEYatHo iOS (0) | 2021.07.23 |
Swift ) Google Login에러. id token expired. Code: -15 - EEYatHo iOS (1) | 2021.07.09 |
Swift ) UISearchBar 네비게이션바에 넣기 (0) | 2021.03.04 |
Swift ) Cell에 그림자 + 둥글게 (shadow + corner radius) (0) | 2021.03.03 |
Comments