Skip to content

Commit

Permalink
Fix crash in settings share method
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 committed Sep 12, 2024
1 parent cf93592 commit 1a35742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Features/SettingsFeature/UIViewController+Share.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension UIViewController {
completion?()
}

let view = navigationController?.view
let view = navigationController?.view ?? view
let viewBound = view.map { CGRect(x: $0.bounds.midX, y: $0.bounds.midY, width: 0, height: 0) }
activityViewController.modalPresentationStyle = .formSheet
activityViewController.popoverPresentationController?.permittedArrowDirections = []
Expand Down

0 comments on commit 1a35742

Please sign in to comment.