Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(ios): use double instead of NSFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfachHans committed Oct 18, 2021
1 parent 22d1ce8 commit 8bf948f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ios/AdvancedImagePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import YPImagePicker
let asBase64 = options?.value(forKey: "asBase64") as? Bool ?? false;
let videoCompression = options?.value(forKey: "videoCompression") as? String ?? "AVAssetExportPresetHighestQuality";
let asJpeg = options?.value(forKey: "asJpeg") as? Bool ?? false;
let recordingTimeLimit = options?.value(forKey: "recordingTimeLimit") as? NSFloat ?? 60.0;
let libraryTimeLimit = options?.value(forKey: "libraryTimeLimit") as? NSFloat ?? 60.0;
let minimumTimeLimit = options?.value(forKey: "minimumTimeLimit") as? NSFloat ?? 3.0;
let recordingTimeLimit = options?.value(forKey: "recordingTimeLimit") as? Double ?? 60.0;
let libraryTimeLimit = options?.value(forKey: "libraryTimeLimit") as? Double ?? 60.0;
let minimumTimeLimit = options?.value(forKey: "minimumTimeLimit") as? Double ?? 3.0;

if(max < 0 || min < 0) {
self.returnError(error: ErrorCodes.WrongJsonObject, message: "Min and Max can not be less then zero.");
Expand Down

0 comments on commit 8bf948f

Please sign in to comment.