Latest 0.0.1
Homepage https://github.com/pixelworm/pixelworm-ios-sdk
License MIT
Platforms ios 12.2
Authors

Pixelworm logo

Pixelworm iOS SDK

Contents

Purpose of this SDK

Pixelworm SDK exports your excellent views to Pixelworm’s database. After exporting your views and your design files to Pixelworm you can enjoy suggestions about how to improve your designs.

Installation

Cocoapods

To integrate Pixelworm iOS SDK into your project you must add following line to your Podfile.

pod ‘Pixelworm’

⚠️ Important: Don’t forget to execute bash script below after adding pod lines:

pod install

Usage

After integrating SDK into your project navigate to your AppDelegate.swift file.

  • Add import PixelwormSDK to the top of the file.
  • In application(_:didFinishLaunchingWithOptions:) function, add lines below. Make sure you replace YOUR_API_KEY and YOUR_SECRET_KEY with your application’s keys.
#if DEBUG

do {
  try Pixelworm.attach(withApiKey: "YOUR_API_KEY", andSecretKey: "YOUR_SECRET_KEY")
} catch let error {
  /*
   * TODO:
   * Handle errors as you wish.
   * Errors will be type of `PixelwormError`.
   */

   print("An error occurred while attaching Pixelworm, error: (error)")
}

#endif
  • In applicationWillTerminate(_:) add lines below.
#if DEBUG

do {
  try Pixelworm.detach()
} catch let error {
  /*
   * TODO:
   * Handle errors as you wish.
   * Errors will be type of `PixelwormError`.
   */

   print("An error occurred while detaching Pixelworm, error: (error)")
}

#endif
  • You’re good to go. Just launch your application and check Pixelworm‘s Screen page!

Latest podspec

{
    "name": "PixelwormSDK",
    "version": "0.0.1",
    "summary": "Pixelworm iOS SDK to export screens",
    "description": "Pixelworm iOS SDK that can be used to export view controllers to Pixelworm application in real-time.",
    "homepage": "https://github.com/pixelworm/pixelworm-ios-sdk",
    "authors": {
        "Dou011fu Emre DEMu0130Ru00c7u0130Vu0130": "[email protected]m.io"
    },
    "platforms": {
        "ios": "12.2"
    },
    "swift_versions": "5",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source": {
        "git": "https://github.com/pixelworm/pixelworm-ios-sdk.git",
        "tag": "0.0.1"
    },
    "source_files": "PixelwormSDK/**/*.{h,m,swift}",
    "swift_version": "5"
}

Pin It on Pinterest

Share This