Skip to content

Remove default implementation Reflectable for NSObject #14

Description

@kolbasek

Hi, I use your nice PrediKit to filter realm Results, works pretty good, but needs particular implementation of the properties() method
My variant:

extension Object: Reflectable {
    public static func properties() -> [Selector] {
        guard let schema = self.sharedSchema() else { return [] }
        let properties = schema.properties.map {
            Selector($0.name)
        }

        let computedProperties = schema.computedProperties.map {
            Selector($0.name)
        }

        return properties+computedProperties
    }
}

Problem is the following: Object inherited from NSObject, so I can't override your implementation in the NSObject extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions