Skip to content

Commit

Permalink
CAApplicationMain
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Feb 26, 2024
1 parent 43eefcd commit 8b63b99
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Sources/CommonAppleKit/CommonAppleKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
#if canImport(UIKit)
import UIKit

public func CAApplicationMain(
_ argc: Int32,
_ argv: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>,
_ principalClassName: String?,
_ delegateClassName: String?
) -> Int32 {
UIApplicationMain(argc, argv, principalClassName, delegateClassName)
}
public typealias CAView = UIView
public typealias CAViewController = UIViewController
public typealias CAApplication = UIApplication
Expand Down Expand Up @@ -117,6 +125,12 @@

import AppKit

public func CAApplicationMain(
_ argc: Int32,
_ argv: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>
) -> Int32 {
NSApplicationMain(argc, argv)
}
public typealias CAView = NSView
public typealias CAViewController = NSViewController
public typealias CAApplication = NSApplication
Expand Down

0 comments on commit 8b63b99

Please sign in to comment.