Skip to content

Instantly share code, notes, and snippets.

View AndresR173's full-sized avatar

Andres Rojas AndresR173

View GitHub Profile
@AliSoftware
AliSoftware / Demo.swift
Last active October 31, 2023 12:25
NestableCodingKey: Nice way to define nested coding keys for properties
struct Contact: Decodable, CustomStringConvertible {
var id: String
@NestedKey
var firstname: String
@NestedKey
var lastname: String
@NestedKey
var address: String
enum CodingKeys: String, NestableCodingKey {
@DanielCardonaRojas
DanielCardonaRojas / KeyPathAutolayout.swift
Last active November 15, 2019 18:20
Declarative KeyPath based Autolayout combinators
//
// KeyPathAutoLayout.swift
// Spotit
//
// Created by Daniel Cardona Rojas on 14/11/19.
// Copyright © 2019 Daniel Cardona Rojas. All rights reserved.
//
import UIKit