From 099223a24e8ba15248376b4eba6613b2f455f3f2 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Fri, 15 Apr 2022 20:16:10 +0200 Subject: [PATCH] Update Options.swift --- ios/Classes/Options.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/Options.swift b/ios/Classes/Options.swift index 96ba50eb..08f4976e 100755 --- a/ios/Classes/Options.swift +++ b/ios/Classes/Options.swift @@ -16,7 +16,7 @@ public class Options: 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) }