Latest 1.1
Homepage https://github.com/chriszielinski/Fab
License MIT
Platforms osx 10.12
Authors ,

Fab. 🛍️


Platform


Pod Version


Carthage compatible


Swift Version


GitHub license


Fab

A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.

Based on Lourenço Marinho’s ActionButton for UIKit.


Features

  • [x] Dark Mode

    Fab

  • [x] + more.

Installation

Fab is available for installation using CocoaPods or Carthage.

CocoaPods

pod "Fab"

Carthage

github "chriszielinski/Fab"

Requirements

  • macOS 10.12+

Usage

Create FabItems

let shareItem = FabItem(label: "Share", shareImage)
shareItem.action = { item in
    print("Selected "Share"")
}

let emailItem = FabItem(label: "Email", emoji: "✉️") { item in
    print("Selected "Email"")
}

Create Fab with items.

let fab = Fab(attachedTo: aView, items: [shareItem, emailItem])

Documentation

There are a lot of properties you can dabble with. You can check out the docs here. Documentation is generated with jazzy and hosted on GitHub-Pages.

Try Me

Includes a Playground and Demo.app.

// ToDo:

  • [ ] Tests.

// CouldDo:

  • [ ] Use CALayer.
  • [ ] Internal refactoring.

Acknowledgements

Contributors

License

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

Latest podspec

{
    "name": "Fab",
    "version": "1.1",
    "summary": "ud83dudecdufe0f A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.",
    "homepage": "https://github.com/chriszielinski/Fab",
    "screenshots": "https://raw.githubusercontent.com/chriszielinski/Fab/master/readme-assets/Fab.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "chriszielinski": "[email protected]",
        "lourenco-marinho": "[email protected]"
    },
    "social_media_url": "http://twitter.com/mightbesuperman",
    "platforms": {
        "osx": "10.12"
    },
    "source": {
        "git": "https://github.com/chriszielinski/Fab.git",
        "tag": "1.1"
    },
    "source_files": "Source/**/*.swift",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This