Skip to content

Commit

Permalink
feat: disable record screen for lower versions than ios 15
Browse files Browse the repository at this point in the history
  • Loading branch information
FranAlarza committed Dec 13, 2024
1 parent c8be948 commit 076278b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions AppliverySDK/Modules/VideoReport/RecordingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ class RecordingViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .clear
addRecordButton()
if #available(iOS 15.0, *) {
addRecordButton()
} else {
}
}


Expand Down Expand Up @@ -124,9 +127,14 @@ class RecordingViewController: UIViewController {

let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)

actionSheet.addAction(screenshotAction)
actionSheet.addAction(screenRecordingAction)
actionSheet.addAction(cancelAction)
if #available(iOS 15.0, *) {
actionSheet.addAction(screenshotAction)
actionSheet.addAction(screenRecordingAction)
actionSheet.addAction(cancelAction)
} else {
actionSheet.addAction(screenshotAction)
actionSheet.addAction(cancelAction)
}

if let popoverController = actionSheet.popoverPresentationController {
popoverController.sourceView = self.view
Expand Down

0 comments on commit 076278b

Please sign in to comment.