Latest 1.1.1
Homepage https://github.com/GrupoGO/PGActionWidget
License MIT
Platforms ios 9.0
Authors

Action Widget for PlayGround Do social actions.

Requirements

It requires Xcode 9.0+ and Swift 3.0.

Installation

pod 'PGActionWidget'

Open actions in PlayGround Do application

Just add the item playgrounddo in your LSApplicationQueriesSchemes

    <key>LSApplicationQueriesSchemes</key>
    <array>
        // ...
        <string>playgrounddo</string>
    </array>

Request PlayGround Do download

Set downloadPGD to true before searchActions

    override func viewDidLoad() {
        super.viewDidLoad()

        // MARK: - Ask for top actions
        // numberOfAction default is 10
        widget.downloadPGD = true
        widget.searchActions(keywords: nil, numberOfAction: nil)
    }

Usage

Basic Usage

Just import PGActionWidget and add a PGDActionWidgetView to your Storyboard

import PGActionWidget

class ViewController: UIViewController {

    @IBOutlet weak var widget: PGDActionWidgetView!

    override func viewDidLoad() {
        super.viewDidLoad()

        // MARK: - Ask for top actions
        // numberOfAction default is 10
        widget.searchActions(keywords: nil, numberOfAction: nil)
    }

}

Search actions for keywords

let keywords = ["fitness","health"]
widget.searchActions(keywords: keywords, numberOfAction: nil)

Search for located actions

Add import CoreLocation

import CoreLocation

class ViewController: UIViewController {

    @IBOutlet weak var widget: PGDActionWidgetView!

    override func viewDidLoad() {
        super.viewDidLoad()

        let keywords = ["fitness","health"]
        let location = CLLocationCoordinate2D(latitude: 41.397392, longitude: 2.195231)
        widget.searchActions(coordinates: location, locationName: "PlayGround", keywords: keywords, numberOfAction: 150)
    }

}

Latest podspec

{
    "name": "PGActionWidget",
    "version": "1.1.1",
    "summary": "PlayGround Do social actions widget.",
    "description": "Action Widget for PlayGround Do social actions.",
    "homepage": "https://github.com/GrupoGO/PGActionWidget",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Grupo Go Optimizations SL": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "documentation_url": "https://github.com/GrupoGO/PGActionWidget/blob/master/README.md",
    "source": {
        "git": "https://github.com/GrupoGO/PGActionWidget.git",
        "tag": "1.1.1"
    },
    "source_files": "*",
    "exclude_files": [
        "LICENSE",
        "PGActionWidget.podspec",
        "README.md",
        "ViewController.swift"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This