In case of CGFloat treated as Float.

This commit is contained in:
Frank 2020-05-05 17:54:04 +08:00
parent f4dbe5d62f
commit 948da9719c
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class Setting<T: AnyObject, Key: KeyPathRepresentable>: ExpressibleByDict
case let value as Int:
return Double(value)
case let value as CGFloat:
return value.native
return Double(value)
default:
return nil
}