Commit d528858
committed
Fix: TextField gray overlay when iOS app runs on macOS
Issue: When the iOS app is downloaded from the Mac App Store and run on
Apple Silicon Macs, a gray overlay appears over TextField components when
Increase Contrast accessibility setting is disabled.
Reproduction:
1. Download bitchat iOS app from Mac App Store
2. Run on Apple Silicon Mac
3. Disable 'Increase Contrast' in System Settings > Accessibility > Display
4. Focus on text input field - gray overlay appears
Fix: Use ProcessInfo.processInfo.isiOSAppOnMac runtime detection to disable
autocorrection only when iOS app runs on macOS. This targets the exact
environment where the issue occurs while preserving normal autocorrection
behavior for iPhone/iPad users.
Addresses code review feedback about incorrect conditional compilation.1 parent 787386c commit d528858
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
14 | 28 | | |
15 | 29 | | |
16 | 30 | | |
| |||
815 | 829 | | |
816 | 830 | | |
817 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
818 | 836 | | |
819 | 837 | | |
820 | 838 | | |
| |||
0 commit comments