Latest 0.0.6
Homepage https://github.com/OkadocTech/okadoc-widget-ios
License MIT
Platforms ios 8.0
Frameworks UIKit, WebKit
Authors

iOS library for okadoc widget

Okadoc is a Dubai tech healthcare company that brings you a greater healthcare experience. Patients can use Okadoc app to find nearby doctors, book doctor’s appointments online, read doctors review online, and more!

Example

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

Installation

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

pod 'OkadocWidget', '~> 0.0.6'

OkadocWidget

Then add to your controller, simply add the following line to your ViewController file:

import UIKit
import OkadocWidget

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.showWidget()
    }

    func showWidget() {
        let widget = OkadocWidget(self)
        widget.setTheme(color: "#0094D3")
        widget.configUrl = "https://widget.okadoc.com"
        widget.configFacilityId = "5570,3,306"
        widget.configTitle = "<img src="https://www.okadoc.com/nupatient/_next/static/src/desktop/assets/images/logo-greene9d4f8b7aa38a1011b58af0b48a42c45.png" width="102" height="25" />"
        widget.configDescription = "<span style="color:#918881">Over 1200+ Okadoc Doctors available to book now</span>"
        widget.configAppbar = "Book a Doctor now"
        widget.configButton = "Book a Doctor now"

        addChildViewController(widget)
        view.addSubview(widget.view)
        widget.didMove(toParentViewController: self)
    }
}

OkadocWidget

And voila we get the following output.

OkadocWidget

Latest podspec

{
    "name": "OkadocWidget",
    "version": "0.0.6",
    "summary": "Okadoc is a Dubai tech healthcare company that brings you a greater healthcare experience.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/OkadocTech/okadoc-widget-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "admin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OkadocTech/okadoc-widget-ios.git",
        "tag": "0.0.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "OkadocWidget/Classes/**/*",
    "resources": "OkadocWidget/Assets/*.xcassets",
    "frameworks": [
        "UIKit",
        "WebKit"
    ]
}

Pin It on Pinterest

Share This