TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2016 |
SPMSupports SPM | ✓ |
Maintained by Tom Baranes, Vincent CARLIER.
AdaptiveSpaceItem is a NSToolbarItem subclass which will create space to center the next toolbar item.
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)
]
)
Just drag the Source/*.swift
files into your project.
Using Interface Builder add an “ToolbarItem” to your toolbar and set its class to AdaptiveSpaceItem. The next item will be centered in the toolbar.
AdaptiveSpaceItem is available under the MIT license. See the LICENSE file for more info.