To run the example project, clone the repo, and run pod install
from the Example directory first.
DinoRunner is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DinoRunner', '1.2.1'
Add https://github.com/Sergey70/DinoRunner to Xcode dependencies.
Implement AppDelegate method with any return value:
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) ->
UIInterfaceOrientationMask {
return .portrait
}
- (UIInterfaceOrientationMask)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(UIWindow *)window {
return UIInterfaceOrientationMaskPortrait;
}
import DinoRunner
DinoRunner.startGame()
#import <DinoRunner/DinoRunner-Swift.h>
[DinoRunner startGame];
Or:
@import DinoRunner;
[DinoRunner startGame];
DinoRunner is available under the MIT license. See the LICENSE file for more info.