Skip to content

The Prototyper framework allows you to create a mix between app prototypes and real apps.

License

Notifications You must be signed in to change notification settings

laramarie/Prototyper

 
 

Repository files navigation

Prototyper

CI Status Version License Platform

Example

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

Requirements

To use the Prototyper framework you need an account for the Prototyper online service. Create a new prototype and download the container file for the prototype you want to inlude in your app.

Installation

  1. Integrate Prototyper Cocoapod

    pod 'Prototyper'
  2. Add App transport security exception for localhost:

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>localhost</key>
            <dict>
                <key>NSTemporaryExceptionAllowsInsecureHTTPSLoads</key>
                <false/>           
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSTemporaryExceptionMinimumTLSVersion</key>
                <string>1.0</string>
                <key>NSTemporaryExceptionRequiresForwardSecrecy</key>
                <false/>
            </dict>
        </dict>
    </dict>
  3. Add container zip file to project

  4. Create ViewController for every prototype page you want to show and make it a subclass of PrototypeViewController (Don’t forget to import Prototyper module)

    import Prototyper
  5. Load prototype in view controller. In viewDidLoad for example:

    self.loadPrototypePage("PAGE_ID")
  6. Optional: Preload prototype (e.g. in AppDelegate)

    PrototypeController.sharedInstance.preloadPrototypes(nil)

Author

Stefan Kofler, grafele@gmail.com

License

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

About

The Prototyper framework allows you to create a mix between app prototypes and real apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 49.5%
  • C 35.8%
  • Swift 10.5%
  • C++ 3.0%
  • Other 1.2%