Swift Dev Notes
Ctrlk
SedatOnat.devAffiliated with SedatOnat.com
  • 👋Welcome to SedatOnat.dev
  • Learning Path
    • What to Learn?
    • How to Learn?
    • Useful Docs
  • Before Starting
    • Xcode
    • Version Control
    • Swift
    • Naming
  • DATABASES
    • Apple Database
    • 3rd Party Databases
    • Database Comparison
  • Design Patterns
    • Alternatives
    • Comparison
  • Model
    • Accessibility
    • Assets
    • Error Debugging
    • File Management
  • CODES
    • Pseudo Code
    • Frameworks
    • APIs
    • Packages
    • Dependency Managers
    • Libraries
    • Main Pillars (Protocol, Class, Struct, etc.)
      • Protocols
        • OOP vs POP
        • Codable
        • Comparable
        • Equatable
        • Hashable
        • Identifiable
        • Observable
        • ObservableObject
        • PreviewProvider
        • Shape
        • View
      • Protocol vs Class
      • Classes
      • Class vs Struct
      • Structs
      • Functions
      • Closures
    • Data Collectors
    • Properties / Data Containers
    • Property Wrappers
    • Optionals
    • Data Types
    • Operators
    • Conditionals
    • Loops
    • Physical Properties
    • Other Properties
    • Code Pool
  • View
    • Apple HIG
    • Design
    • Image and Graphic
    • Page Elements
    • View Modifiers
    • Reporting
    • Others
  • Solutions
    • Case Solutions
    • Sample Project Pool
  • Testing
    • Debugging
    • Testing CheckList
    • Unit Test
  • Documentation
    • GitBook
    • MarkDown
  • Deploying and Publishing
    • Checklist
    • Deployment Processes
    • Publishing Processes
    • ASO - App Store Optimization
  • Kaizen
    • CI-CD
Powered by GitBook
On this page
  • Overview
  • Codable
  • Encodable
  • Decodable
  • Encoder
  • Decoder
  • CodingKey
  • TestServer Reqres.in
  • Sources
  • Articles / Documents

Was this helpful?

  1. CODES
  2. Main Pillars (Protocol, Class, Struct, etc.)
  3. Protocols

Codable

#codable #encodable #decodable #encoder #decoder #codingkey #encode #json #jsonencoder #reqres #testserver #encoding #decoding

Overview

It is used for archiving and unarchiving data with converting objects into plain text and back again.

Codable

Hacking with Swift / 100 Days / Day-36 - Archiving Swift objects with Codable
Hacking with Swift / 100 Days / Day-39 - Working with hierarchical Codable data
Hacking with Swift / 100 Days / Day-40 - Loading a specific kind of Codable data
Hacking with Swift / 100 Days / Day-40 - Using generics to load any kind of Codable data

Encodable

Decodable

Encoder

Decoder

CodingKey

Hacking with Swift / 100 Days / Day-51 - Encoding an ObservableObject class

#container #encode #init

...

Hacking with Swift / 100 Days / Day-51 - Sending and receiving orders over the internet

#send #receive #get #post #regres #testserver

TestServer Reqres.in

#testserver #reqres

LogoReqres - A hosted REST-API ready to respond to your AJAX requestsreqres.in
Hacking with Swift / 100 Days / Day-51 - Sending and receiving orders over the internet

Sources

Articles / Documents

  • Developer.Apple.com / Article / Encoding and Decoding Custom Types

PreviousOOP vs POPNextComparable

Last updated 2 years ago

Was this helpful?