wails/v3/pkg/application/systemtray_ios.go
Lea Anthony 873848a077 Merge iOS support from v3-alpha-feature/ios-support
This commit integrates iOS platform support for Wails v3, adapting the
iOS-specific code to work with the new transport layer architecture.

Key changes:
- Add iOS-specific application, webview, and runtime files
- Add iOS event types and processing
- Add iOS examples and templates
- Update messageprocessor to handle iOS requests
- Move badge_ios.go to dock package

Note: The iOS branch was based on an older v3-alpha and required
significant conflict resolution due to the transport layer refactor
(PR #4702). Some iOS-specific code may need further adaptation:
- processIOSMethod needs to be implemented with new RuntimeRequest signature
- iOS event generation in tasks/events/generate.go needs updating

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 18:34:21 +11:00

103 lines
No EOL
1.9 KiB
Go

//go:build ios
package application
// iOS doesn't have system tray support
// These are placeholder implementations
func (t *SystemTray) update() {}
func (t *SystemTray) setMenu(menu *Menu) {
// iOS doesn't have system tray
}
func (t *SystemTray) close() {
// iOS doesn't have system tray
}
func (t *SystemTray) attachWindow(window *WebviewWindow) {
// iOS doesn't have system tray
}
func (t *SystemTray) detachWindow(windowID uint) {
// iOS doesn't have system tray
}
type iosSystemTray struct {
parent *SystemTray
}
func newSystemTrayImpl(s *SystemTray) systemTrayImpl {
return &iosSystemTray{
parent: s,
}
}
func (s *iosSystemTray) run() {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setLabel(_ string) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setMenu(_ *Menu) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setIcon(_ []byte) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setDarkModeIcon(_ []byte) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) destroy() {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setIconPosition(_ IconPosition) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) positionWindow(_ Window, _ int) error {
return nil
}
func (s *iosSystemTray) detachWindowPositioning(_ uint) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setTemplateIcon(_ []byte) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) openMenu() {
// iOS doesn't have system tray
}
func (s *iosSystemTray) setTooltip(_ string) {
// iOS doesn't have system tray
}
func (s *iosSystemTray) bounds() (*Rect, error) {
return nil, nil
}
func (s *iosSystemTray) getScreen() (*Screen, error) {
screens, err := getScreens()
if err != nil || len(screens) == 0 {
return nil, err
}
return screens[0], nil
}
func (s *iosSystemTray) Show() {
// iOS doesn't have system tray
}
func (s *iosSystemTray) Hide() {
// iOS doesn't have system tray
}