Update Options.swift

This commit is contained in:
Lorenzo Pichilli 2022-04-15 20:16:10 +02:00 committed by GitHub
parent 19ffe781e6
commit 099223a24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ public class Options<T>: NSObject {
func parse(options: [String: Any?]) -> Options {
for (key, value) in options {
if !(value is NSNull) {
if value != nil, !(value is NSNull) {
if self.responds(to: Selector(key)) {
self.setValue(value, forKey: key)
}