Update Options.swift
This commit is contained in:
parent
19ffe781e6
commit
099223a24e
@ -16,7 +16,7 @@ public class Options<T>: NSObject {
|
|||||||
|
|
||||||
func parse(options: [String: Any?]) -> Options {
|
func parse(options: [String: Any?]) -> Options {
|
||||||
for (key, value) in options {
|
for (key, value) in options {
|
||||||
if !(value is NSNull) {
|
if value != nil, !(value is NSNull) {
|
||||||
if self.responds(to: Selector(key)) {
|
if self.responds(to: Selector(key)) {
|
||||||
self.setValue(value, forKey: key)
|
self.setValue(value, forKey: key)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user