Latest 0.0.2
Homepage https://github.com/himaratsu/DesignOverlayKit
License MIT
Platforms ios 9.0, requires ARC
Authors

DesignOverlay

iOS library which displays grid lines on App Screen to facilitate the design implementation process.
Inspired by Manabu-GT/DesignOverlay-Android.

Features

  • Easy to use like: DesignOverlay.show()
  • Grid view is shown as overlay.

How it looks

DesignOverlayKit

DesignOverlayKit DesignOverlayKit DesignOverlayKit

Requirements

  • iOS 9.0 or later

Demo

Git clone or download this repository and open DesignLayoutKitSample.xcodeproj . You can try DesignOverkay in your Mac or iPhone.

Installation and Setup

Installing with CocoaPods

CocoaPods is a centralised dependency manager.
To integrate DesignOverlay into your Xcode project using CocoaPods, specify it in your Podfile and run pod install.

platform :ios, '9.0'
use_frameworks!

pod 'DesignOverlayKit'

Installing with Carthage

Just add to your Cartfile:

github "himaratsu/DesignOverlayKit"

Usage

Basic

To start using DesignOverlayKit, write the following line wherever you want to use design overlay.

import DesignOverlayKit

Then invoke DesignOverlay, by calling:

DesignOverlay.show()

And following line to dismiss overlay.

DesignOverlay.hide()

Parameter

DesignOvelay can be customizable with DesignOverlay.Parameter.

let parameter = DesignOverlay.Parameter()
parameter.gridSize = 50
parameter.gridColor = UIColor.green

DesignOverlay.show(with: parameter)

License

DesignOverlay is released under the MIT license. Go read the LICENSE file for more information.

Latest podspec

{
    "name": "DesignOverlayKit",
    "version": "0.0.2",
    "summary": "show design overlay for checking margin and content size.",
    "description": "- Debug feature.n- Show grid as overlay.",
    "homepage": "https://github.com/himaratsu/DesignOverlayKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ryosuke Hiramatsu": "[email protected]"
    },
    "social_media_url": "http://twitter.com/himara2",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/himaratsu/DesignOverlayKit.git",
        "tag": "0.0.2"
    },
    "source_files": "DesignOverlayKit/**/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This