Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/kvo_user.swift Secret
Created Feb 2, 2019

Embed
What would you like to do?
import Foundation
public class Usuario: NSObject
{
/// Nombre del usuario.
/// Propiedad de la que queremos saber sus cambios
@objc dynamic public var nombre: String
/**
Creamos un nuevo usuario
*/
public init(named nombre: String)
{
self.nombre = nombre
super.init()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.