Skip to content

Instantly share code, notes, and snippets.

Gustavo Campos guseducampos

Block or report user

Report or block guseducampos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@guseducampos
guseducampos / PickerView.swift
Last active Feb 19, 2019
Small abstraction to handle picker view elements with a custom object.
View PickerView.swift
import Foundation
import ObjectiveC
import UIKit
protocol PickerViewItem: Equatable {
typealias TextProperty = KeyPath<Self, String>
typealias SelectProperty = KeyPath<Self, SelectItem>
You can’t perform that action at this time.