Skip to content

Instantly share code, notes, and snippets.

View mtnbarreto's full-sized avatar
🎯
Focusing

Martin Barreto mtnbarreto

🎯
Focusing
View GitHub Profile
import Foundation
@propertyWrapper
public struct Validate<Value> {
fileprivate let _isValid: (Value) -> Bool
public let asserts: Bool
public let useLastValid: Bool
public let message: (Value) -> String
@sgr-ksmt
sgr-ksmt / Contents.swift
Last active May 9, 2022 23:07
JSONDecoder+keypath
//: Playground - noun: a place where people can play
import UIKit
var json: String = """
{
"result": {
"persons": [
{
@staltz
staltz / introrx.md
Last active May 10, 2024 12:08
The introduction to Reactive Programming you've been missing