Skip to content

Add requiresFullScreen property and enhance iPad orientations#7

Merged
algotyrnt merged 2 commits intomainfrom
dev
Mar 6, 2026
Merged

Add requiresFullScreen property and enhance iPad orientations#7
algotyrnt merged 2 commits intomainfrom
dev

Conversation

@algotyrnt
Copy link
Owner

This pull request updates the supported interface orientations for the app in Package.swift to improve the user experience on iPad devices.

User interface improvements:

  • Added support for landscapeRight, landscapeLeft, and portraitUpsideDown orientations specifically for iPads, while keeping only portrait for other devices in the supportedInterfaceOrientations array in Package.swift.

Copilot AI review requested due to automatic review settings March 6, 2026 06:13
@algotyrnt algotyrnt self-assigned this Mar 6, 2026
@algotyrnt algotyrnt merged commit e7794fe into main Mar 6, 2026
3 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the app’s supportedInterfaceOrientations configuration in the SwiftPM manifest to allow additional orientations on iPad while keeping iPhone portrait-only behavior.

Changes:

  • Adds conditional iPad-only support for landscapeRight, landscapeLeft, and portraitUpsideDown in supportedInterfaceOrientations.
  • Keeps .portrait enabled for all device families.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 29 to 34
supportedInterfaceOrientations: [
.portrait
.portrait,
.landscapeRight(.when(deviceFamilies: [.pad])),
.landscapeLeft(.when(deviceFamilies: [.pad])),
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
],
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is made in an auto-generated manifest (see the warning at the top of this file). Any regeneration step (e.g., from Xcode/Swift Playgrounds) is likely to overwrite these orientation updates. Please apply this change in the source that generates Beacon.swiftpm/Package.swift (or document/update the generation workflow) so it persists.

Copilot uses AI. Check for mistakes.
Comment on lines 29 to +33
supportedInterfaceOrientations: [
.portrait
.portrait,
.landscapeRight(.when(deviceFamilies: [.pad])),
.landscapeLeft(.when(deviceFamilies: [.pad])),
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description mention adding a requiresFullScreen property, but this diff only updates supportedInterfaceOrientations. Either add the requiresFullScreen change (if intended) or update the PR metadata so it accurately reflects the actual change set.

Copilot uses AI. Check for mistakes.
Comment on lines +30 to +33
.portrait,
.landscapeRight(.when(deviceFamilies: [.pad])),
.landscapeLeft(.when(deviceFamilies: [.pad])),
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation of the items in supportedInterfaceOrientations appears inconsistent with nearby arrays in this file. Please reformat this block to keep the manifest readable and consistent.

Suggested change
.portrait,
.landscapeRight(.when(deviceFamilies: [.pad])),
.landscapeLeft(.when(deviceFamilies: [.pad])),
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
.portrait,
.landscapeRight(.when(deviceFamilies: [.pad])),
.landscapeLeft(.when(deviceFamilies: [.pad])),
.portraitUpsideDown(.when(deviceFamilies: [.pad]))

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants