I have a model class that contains some static variables and properties. In Runtime I can get the properties;
let instance = entity.init()
let mirror = Mirror(reflecting:instance)
var propertyStrings = [String]()
for (propertyName, childMirror) in mirror.children {
}
But I want to get static variables of the class as a list too. So how can I get the list of static variable's names and values ? Here is my model class' structure :
class ActionModel: NSObject {
static let kLastModified = "LastModified"
static let kEntityName = "EntityName"
static let kIdentifier = "Id"
var lastModified: Int64
var entityName: String?
var identifier : PrimaryKeyString