Latest 0.4.3
Homepage https://github.com/jcampbell05/Polly
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, CoreLocation
Authors

Polyfills for iOS.

[![CI Status](http://img.shields.io/travis/James Campbell/Polly.svg?style=flat)](https://travis-ci.org/James Campbell/Polly)
Version
License
Platform

Usage

Just import the umbrella header somewhere (I recommend the main.m file) and all polyfills are applied:

#import<Polly/Polly-umbrella>

Polyfills

  • UITraitCollection.forceTouchCapability : On iOS 8 this property is implemented and returns UIForceTouchCapabilityUnavailable. If you want to use the polyfill in swift then we expose a polly_forceTouchCapability property.

  • CLLocationManager.requestLocation : On iOS 8 this method is implemented and replicates perfoming a single location update like it’s iOS 9 counterpart. If you want to use the polyfill in swift then we expose a polly_requestLocation method.

  • UIViewController.registerForPreviewingWithDelegate:SourceView : On iOS 8 this method is just a Nop to allow you to keep your code clean. If you want to use the polyfill in swift then we expose a polly_registerForPreviewingWithDelegate:SourceView method.

  • UIViewControllerPreviewing : We provide polly prefixed properties to allow you to interact with this protocol without use of the #avaliable macro. Promoting cleaner code.

Requirements

Installation

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

pod "Polly"

Author

James Campbell, [email protected]

License

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

Latest podspec

{
    "name": "Polly",
    "version": "0.4.3",
    "summary": "Polyfills for iOS.",
    "description": "Polyfills for iOS to make things easier.",
    "homepage": "https://github.com/jcampbell05/Polly",
    "license": "MIT",
    "authors": {
        "James Campbell": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jcampbell05/Polly.git",
        "tag": "0.4.3"
    },
    "social_media_url": "https://twitter.com/jcampbell_05",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "Polly": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "CoreLocation"
    ]
}

Pin It on Pinterest

Share This