@hortemo/expo-photos 13.0.0 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -476,7 +476,8 @@ struct TargetSize: Convertible {
|
|
|
476
476
|
extension Convertible where Self: RawRepresentable, Self.RawValue == Int {
|
|
477
477
|
public static func convert(from value: Any?, appContext: AppContext) throws -> Self {
|
|
478
478
|
guard
|
|
479
|
-
let
|
|
479
|
+
let number = value as? Double,
|
|
480
|
+
let rawValue = Int(exactly: number),
|
|
480
481
|
let enumValue = Self(rawValue: rawValue)
|
|
481
482
|
else {
|
|
482
483
|
throw Conversions.ConvertingException<Self>(value)
|