Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbaranes/AdaptiveSpaceItem
A NSToolbarItem which will create space to center the next toolbar item
https://github.com/tbaranes/AdaptiveSpaceItem
Last synced: 2 months ago
JSON representation
A NSToolbarItem which will create space to center the next toolbar item
- Host: GitHub
- URL: https://github.com/tbaranes/AdaptiveSpaceItem
- Owner: tbaranes
- License: mit
- Created: 2016-02-18T16:41:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T14:24:19.000Z (about 7 years ago)
- Last Synced: 2024-11-08T01:12:00.737Z (2 months ago)
- Language: Swift
- Size: 111 KB
- Stars: 13
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-macOS - AdaptiveSpaceItem - A NSToolbarItem which will create space to center the next toolbar item . 🔶 (Uncategorized / Uncategorized)
README
# AdaptiveSpaceItem
[![Travis](https://img.shields.io/travis/tbaranes/AdaptiveSpaceItem.svg)](https://travis-ci.org/tbaranes/AdaptiveSpaceItem)
![Language](https://img.shields.io/badge/language-Swift%204.0-orange.svg)
[![CocoaPods](https://img.shields.io/cocoapods/v/AdaptiveSpaceItem.svg?style=flat)](https://github.com/tbaranes/AdaptiveSpaceItem)
[![Platform](https://img.shields.io/cocoapods/p/AdaptiveSpaceItem.svg?style=flat)](http://cocoadocs.org/docsets/AdaptiveSpaceItem)
[![License](https://img.shields.io/cocoapods/l/AdaptiveSpaceItem.svg?style=flat)](http://cocoapods.org/pods/AdaptiveSpaceItem)AdaptiveSpaceItem is a NSToolbarItem subclass which will create space to center the next toolbar item.
![](./assets/demo.png)
## 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:
```swift
import PackageDescriptionlet 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.