Latest 0.4.0
Homepage https://github.com/kaunteya/InfoButton
License MIT
Platforms osx 10.10, requires ARC
Authors

Cocoapods Compatible
Platform
License

InfoButton is simple and lightweight Information Button for Mac OSX implemented in Swift 2.0
Demo

Features

  • Easy to Use
  • Light Mode and Fill Mode
  • Animatable Popover
  • Show on Hover

Requirements

  • Mac OS X 10.9
  • Xcode 7

Installation

Direct

Drag InfoButton.swift to your project. That is it!

CocoaPods

To integrate InfoButton into your Xcode project using CocoaPods, specify it in your Podfile:

use_frameworks!

pod 'InfoButton'

Then, run the following command:

$ pod install

Usage

In Interface builder, drag a Custom View from Object Library and set Custom Class to InfoButton

Since InfoButton is @IBDesignable, Attribute Inspector gets updated like this.

Attribute Inspector

Update Fill Mode, Animate Popover, Content and Primary Color and there you have InfoButton ready without writing a single line of code.

Notes

  • Make sure the height and width of InfoButton are equal
  • Press ⌥ ↩ for newline in text field of IB.(Option + Return)

Todo

  • RTF Support for Popover content
  • Replace ? in button with i in italics (If you have a suggestion please post it in issues)

License

InfoButton is released under the MIT license. See LICENSE for details.

Bitdeli Badge

Latest podspec

{
    "name": "InfoButton",
    "version": "0.4.0",
    "license": "MIT",
    "summary": "Simple and Lightweight Information Button for Mac",
    "homepage": "https://github.com/kaunteya/InfoButton",
    "authors": {
        "Kaunteya Suryawanshi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kaunteya/InfoButton.git",
        "tag": "0.4.0"
    },
    "platforms": {
        "osx": "10.10"
    },
    "requires_arc": true,
    "source_files": "InfoButton.swift"
}

Pin It on Pinterest

Share This