Skip to content

Fix: Detect iOS devices as mobile to catch iPads#320

Merged
RadicalMuffinMan merged 1 commit into
Moonfin-Client:mainfrom
fivepandasna:main
Jun 2, 2026
Merged

Fix: Detect iOS devices as mobile to catch iPads#320
RadicalMuffinMan merged 1 commit into
Moonfin-Client:mainfrom
fivepandasna:main

Conversation

@fivepandasna

@fivepandasna fivepandasna commented Jun 1, 2026

Copy link
Copy Markdown

Pull Request

Summary

Fix iPad being incorrectly detected as desktop form factor in PlatformDetection, causing the wrong UI mode to be used.

Related Issues

#342

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • UI/UX update
  • Documentation update
  • Build/CI change
  • Other (describe):

Changes Made

List the key changes included in this PR.

Added if (defaultTargetPlatform == TargetPlatform.iOS) return true; as the first guard in _hasMobileFormFactor

Platform

  • Android
  • iOS
  • macOS
  • Windows
  • Linux
  • All / Shared code

Testing

Describe how this change was tested.

  • Tested on emulator / simulator
  • Tested on physical device
  • Manual testing completed
  • Not tested (explain why):

Test Steps

  1. Install the app on an iPad
  2. Verify that you are getting the correct platform detected and UI

Screenshots (if applicable)

Before fix:
IMG_1682

After fix:
IMG_1683

Checklist

  • Code builds successfully
  • Code follows project style and conventions
  • No unnecessary commented-out code
  • No new warnings introduced

@RadicalMuffinMan RadicalMuffinMan merged commit e5558c0 into Moonfin-Client:main Jun 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants