Latest 1.2.0
Homepage https://github.com/tbaranes/AdaptiveSpaceItem
License MIT
Platforms osx 10.10, requires ARC
Authors

Travis
Language
CocoaPods
Platform
License

AdaptiveSpaceItem is a NSToolbarItem subclass which will create space to center the next toolbar item.

Installation

Cocoapods Installation

AdaptiveSpaceItem is available on CocoaPods. Just add the following to your Podfile:

pod 'AdaptiveSpaceItem'

Swift Package Manager

AdaptiveSpaceItem is available on SPM. Just add the following to your Package file:

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/tbaranes/AdaptiveSpaceItem.git", majorVersion: 1)
    ]
)

Manual Installation

Just drag the Source/*.swift files into your project.

Usage

Using Interface Builder add an "ToolbarItem" to your toolbar and set its class to AdaptiveSpaceItem. The next item will be centered in the toolbar.

What’s next

  • Your ideas!

Contribution

  • If you found a bug, open an issue
  • If you have a feature request, open an issue
  • If you want to contribute, submit a pull request

Licence

AdaptiveSpaceItem is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "AdaptiveSpaceItem",
    "version": "1.2.0",
    "summary": "A NSToolbarItem which will create space to center the next toolbar item",
    "description": "A NSToolbarItem sublclass which will create space to center the next toolbar item",
    "homepage": "https://github.com/tbaranes/AdaptiveSpaceItem",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tom Baranes": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tbaranes/AdaptiveSpaceItem.git",
        "tag": "1.2.0"
    },
    "platforms": {
        "osx": "10.10"
    },
    "requires_arc": true,
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This