Skip to content

Instantly share code, notes, and snippets.

@peteranny
Last active July 29, 2020 17:34
Show Gist options
  • Save peteranny/322b7ede1a7303621b003f27dc8de256 to your computer and use it in GitHub Desktop.
Save peteranny/322b7ede1a7303621b003f27dc8de256 to your computer and use it in GitHub Desktop.
An example app to test if PromiseKit imported successfully. https://medium.com/@tingyishih/ios-migrate-from-cocoapods-to-carthage-7be237e4cac0
import PromiseKit
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let p = Promise.value(0) // A useless promise just for test
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment