Skip to content

Commit

Permalink
fix: build fails on iOS target
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki committed Feb 7, 2024
1 parent 341d548 commit cca34f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class TimelineViewController: UIViewController, Instantiatable {
self.showFromTimeline(vc)
}
// TODO: also allow for other idiom like .pad, after consider about corner worse case
if traitCollection.userInterfaceIdiom == .vision {
if #available(iOS 17.0, *), traitCollection.userInterfaceIdiom == .vision {
let userActivity = NSUserActivity(newPostWithMastodonUserToken: environment)
UIApplication.shared.requestSceneSessionActivation(nil, userActivity: userActivity, options: UIWindowScene.ActivationRequestOptions() {
$0.requestingScene = self.view.window?.windowScene
Expand Down

0 comments on commit cca34f0

Please sign in to comment.