https://github.com/vox-humana/appkitcatalystplayground
Escaping iOS sandbox of Mac Catalyst
https://github.com/vox-humana/appkitcatalystplayground
appkit catalyst ios maccatalyst macos swift
Last synced: 2 months ago
JSON representation
Escaping iOS sandbox of Mac Catalyst
- Host: GitHub
- URL: https://github.com/vox-humana/appkitcatalystplayground
- Owner: vox-humana
- Created: 2020-11-17T02:11:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-17T02:22:38.000Z (over 5 years ago)
- Last Synced: 2025-03-14T19:47:15.561Z (over 1 year ago)
- Topics: appkit, catalyst, ios, maccatalyst, macos, swift
- Language: Swift
- Homepage:
- Size: 1.21 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playground: AppKit StatusBarItem integration in Catalyst app
Tested on Catalina and Big Sur (11.0.1)

## Next possible steps
- Hide newly created UIWindow somehow before showing it at the right spot
- Save and restore state (lilke `value` from SwiftUI form) or just keep whole NSWindow hiding it via `orderOut` method (see GIF)
- Make NSWindow detection hack more reliable (maybe move new NSWindow detection on AppKit side)
- Pass AppStore review 😅
## Usefull links
- https://www.highcaffeinecontent.com/blog/20190607-Beyond-the-Checkbox-with-Catalyst-and-AppKit
- https://www.kairadiagne.com/2019/11/19/adding-support-for-multiple-windows.html
- https://stackoverflow.com/questions/58882047/open-a-new-window-in-mac-catalyst
- https://stackoverflow.com/questions/57123554/mac-catalyst-minimum-window-size-for-mac-catalyst-app
- https://www.craft.do/maccatalyst-guide/b/E0ADDD39-AE32-4040-B0AC-08E9BCAC6812/Windows,_Tabs
- https://github.com/lukakerr/NSWindowStyles