-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26dbb17
commit 581fab9
Showing
7 changed files
with
130 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,27 @@ | ||
import SPMGenExampleResources | ||
|
||
#if os(iOS) | ||
import UIKit | ||
public typealias CocoaApplication = UIApplication | ||
public typealias CocoaApplicationDelegate = UIApplicationDelegate | ||
import UIKit | ||
public typealias CocoaApplication = UIApplication | ||
public typealias CocoaApplicationDelegate = UIApplicationDelegate | ||
|
||
public final class AppDelegate: NSObject, CocoaApplicationDelegate { | ||
public func application( | ||
_ application: CocoaApplication, | ||
didFinishLaunchingWithOptions launchOptions: [ | ||
CocoaApplication.LaunchOptionsKey : Any | ||
]? = nil | ||
) -> Bool { | ||
CocoaFont.bootstrap() | ||
return true | ||
public final class AppDelegate: NSObject, CocoaApplicationDelegate { | ||
public func application( | ||
_ application: CocoaApplication, | ||
didFinishLaunchingWithOptions launchOptions: [CocoaApplication.LaunchOptionsKey: Any]? = nil | ||
) -> Bool { | ||
CocoaFont.bootstrap() | ||
return true | ||
} | ||
} | ||
} | ||
#elseif os(macOS) | ||
import AppKit | ||
public typealias CocoaApplication = NSApplication | ||
public typealias CocoaApplicationDelegate = NSApplicationDelegate | ||
import AppKit | ||
public typealias CocoaApplication = NSApplication | ||
public typealias CocoaApplicationDelegate = NSApplicationDelegate | ||
|
||
public final class AppDelegate: NSObject, CocoaApplicationDelegate { | ||
public func applicationDidFinishLaunching(_ notification: Notification) { | ||
CocoaFont.bootstrap() | ||
public final class AppDelegate: NSObject, CocoaApplicationDelegate { | ||
public func applicationDidFinishLaunching(_ notification: Notification) { | ||
CocoaFont.bootstrap() | ||
} | ||
} | ||
} | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.