Skip to content

Sergey70/DinoRunner

Repository files navigation

DinoRunner

Version License Platform SwiftPM compatible iOS

Screenshots

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Cocoapods

DinoRunner is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DinoRunner', '1.2.1'

Swift Package Manager

Add https://github.com/Sergey70/DinoRunner to Xcode dependencies.

Usage

Implement AppDelegate method with any return value:

Swift:

func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> 
UIInterfaceOrientationMask {
    return .portrait
 }

Objective-C:

- (UIInterfaceOrientationMask)application:(UIApplication *)application 
  supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return UIInterfaceOrientationMaskPortrait;
}

Activate Game:

Swift:

import DinoRunner

DinoRunner.startGame()

Objective-C:

#import <DinoRunner/DinoRunner-Swift.h>

[DinoRunner startGame];

Or:

@import DinoRunner;

[DinoRunner startGame];

Author

Sergey70

Telegram: @exovelate

License

DinoRunner is available under the MIT license. See the LICENSE file for more info.