apprt/embedded: add iOS platform with uivew

This commit is contained in:
Mitchell Hashimoto
2024-01-18 15:03:03 -08:00
parent 5fe3900efa
commit 26e6e8cec8
3 changed files with 25 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ typedef void *ghostty_inspector_t;
typedef enum {
GHOSTTY_PLATFORM_INVALID,
GHOSTTY_PLATFORM_MACOS,
GHOSTTY_PLATFORM_IOS,
} ghostty_platform_e;
typedef enum {
@@ -358,8 +359,13 @@ typedef struct {
void *nsview;
} ghostty_platform_macos_s;
typedef struct {
void *uiview;
} ghostty_platform_ios_s;
typedef union {
ghostty_platform_macos_s macos;
ghostty_platform_ios_s ios;
} ghostty_platform_u;
typedef struct {