Limit the share extension to level one quality
This commit is contained in:
parent
dcad07c212
commit
279b2dada8
@ -76,7 +76,7 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC
|
||||
options.insert(.canToggleViewOnce)
|
||||
}
|
||||
|
||||
if ImageQualityLevel.max != .standard && attachmentApprovalItemCollection.attachmentApprovalItems.filter({ $0.attachment.isValidImage }).count > 0 {
|
||||
if ImageQualityLevel.max == .high && attachmentApprovalItemCollection.attachmentApprovalItems.filter({ $0.attachment.isValidImage }).count > 0 {
|
||||
options.insert(.canChangeQualityLevel)
|
||||
}
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ public enum ImageQualityLevel: UInt {
|
||||
// Outside of the main app (like in the share extension)
|
||||
// we have very tight memory restrictions, and cannot
|
||||
// allow sending high quality media.
|
||||
return .standard
|
||||
return .one
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user