mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 15:15:51 +01:00
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>
33 lines
No EOL
851 B
Go
33 lines
No EOL
851 B
Go
//go:build ios
|
|
|
|
package application
|
|
|
|
// getScreens returns all screens on iOS - Screen type is defined in screenmanager.go
|
|
|
|
// getScreens returns all screens on iOS
|
|
func getScreens() ([]*Screen, error) {
|
|
// iOS typically has one screen
|
|
// This would need proper implementation with UIScreen
|
|
mainRect := Rect{
|
|
X: 0,
|
|
Y: 0,
|
|
Width: 1170, // iPhone 12 Pro width
|
|
Height: 2532, // iPhone 12 Pro height
|
|
}
|
|
return []*Screen{
|
|
{
|
|
ID: "main",
|
|
Name: "Main Screen",
|
|
ScaleFactor: 3.0, // iPhone 12 Pro scale
|
|
X: 0,
|
|
Y: 0,
|
|
Size: Size{Width: 1170, Height: 2532},
|
|
Bounds: mainRect,
|
|
PhysicalBounds: mainRect,
|
|
WorkArea: mainRect,
|
|
PhysicalWorkArea: mainRect,
|
|
IsPrimary: true,
|
|
Rotation: 0,
|
|
},
|
|
}, nil
|
|
} |