All Projects β†’ pedrommcarrasco β†’ Hover

pedrommcarrasco / Hover

Licence: mit
🎈 The smartest floating button

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Hover

Koyomi
Simple customizable calendar component in Swift πŸ“†
Stars: ✭ 716 (+783.95%)
Mutual labels:  cocoapods, carthage, ui-components
Multiprogressview
πŸ“Š An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (+658.02%)
Mutual labels:  cocoapods, carthage, ui-components
Jjfloatingactionbutton
Floating Action Button for iOS
Stars: ✭ 243 (+200%)
Mutual labels:  cocoapods, fab, floatingactionbutton
Wstagsfield
An iOS text field that represents tags, hashtags, tokens in general.
Stars: ✭ 1,013 (+1150.62%)
Mutual labels:  cocoapods, carthage, ui-components
Transitionbutton
UIButton sublass for loading and transition animation.
Stars: ✭ 1,124 (+1287.65%)
Mutual labels:  cocoapods, carthage
Css3colorsswift
A UIColor extension with CSS3 Color names.
Stars: ✭ 62 (-23.46%)
Mutual labels:  cocoapods, carthage
Cameramanager
Simple Swift class to provide all the configurations you need to create custom camera view in your app
Stars: ✭ 1,130 (+1295.06%)
Mutual labels:  cocoapods, carthage
Dikit
Dependency Injection Framework for Swift, inspired by KOIN.
Stars: ✭ 77 (-4.94%)
Mutual labels:  cocoapods, carthage
Hcimage Bpg
BPG decoder for iOS and OS X written in Obj-C++.
Stars: ✭ 58 (-28.4%)
Mutual labels:  cocoapods, carthage
Cluster
Easy Map Annotation Clustering πŸ“
Stars: ✭ 1,132 (+1297.53%)
Mutual labels:  cocoapods, carthage
Swiftlinkpreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
Stars: ✭ 1,216 (+1401.23%)
Mutual labels:  cocoapods, carthage
Ctshowcase
A simple to use Showcase library that can highlight arbitrary views in an iOS app
Stars: ✭ 73 (-9.88%)
Mutual labels:  cocoapods, carthage
Pinpointkit
Send better feedback
Stars: ✭ 1,115 (+1276.54%)
Mutual labels:  cocoapods, carthage
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+1356.79%)
Mutual labels:  cocoapods, carthage
Peep
Easy Sound Generator πŸ₯
Stars: ✭ 59 (-27.16%)
Mutual labels:  cocoapods, carthage
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+1353.09%)
Mutual labels:  cocoapods, carthage
Popmenu
A fully customizable popup style menu for iOS 😎
Stars: ✭ 1,155 (+1325.93%)
Mutual labels:  cocoapods, carthage
Memorycache
LRU, type-safe, thread-safe memory cache class in Swift
Stars: ✭ 66 (-18.52%)
Mutual labels:  cocoapods, carthage
Corenavigation
πŸ“±πŸ“² Navigate between view controllers with ease. πŸ’« πŸ”œ More stable version (written in Swift 5) coming soon.
Stars: ✭ 69 (-14.81%)
Mutual labels:  cocoapods, carthage
Soundable
Soundable allows you to play sounds, single and in sequence, in a very easy way
Stars: ✭ 78 (-3.7%)
Mutual labels:  cocoapods, carthage

Presentation

🎈 What's Hover?

Hover (/ˈhΙ’v.Ι™r/), verb

"to stay in one place in the air"

Hover is a draggable floating action button (FAB) inspired by Apple's session Designing Fluid Interfaces & Nathan Gitter's fluid-interfaces. Hover will always stick to the nearest corner to avoid blocking content and allows the user to send it to any other corner with a single swipe.

CocoaPods Carthage compatible apm

πŸ“¦ Installation

CocoaPods

Add the following line to your podfile:

pod 'Hover'

And then run the following command in terminal:

pod install

Carthage

Add the following line to your cartfile:

github "pedrommcarrasco/Hover"

And then run the following command in terminal:

carthage update

Swift Package Manager

To include Hover into a Swift Package Manager package, add it to the dependencies attribute defined in your Package.swift file. For example:

    dependencies: [
        .package(url: "https://github.com/pedrommcarrasco/Hover.git", from: <version>),
    ]

⌨️ Usage Example

After installing Hover, you should start by importing the framework:

import Hover

Once imported, you can start using Hover like follows:

// Create Hover's Configuration (all parameters have defaults)
let configuration = HoverConfiguration(icon: UIImage(named: "add"), color: .gradient(top: .blue, bottom: .cyan))

// Create the items to display
let items = [
    HoverItem(title: "Drop it Anywhere", image: UIImage(named: "anywhere")) { print("Tapped 'Drop it anywhere'") },
    HoverItem(title: "Gesture Driven", image: UIImage(named: "gesture")) { print("Tapped 'Gesture driven'") },
    HoverItem(title: "Give it a Star", image: UIImage(named: "star")) { print("Tapped 'Give it a star'") }
]

// Create an HoverView with the previous configuration & items
let hoverView = HoverView(with: configuration, items: items)

// Add to the top of the view hierarchy
view.addSubview(hoverView)
hoverView.translatesAutoresizingMaskIntoConstraints = false

// Apply Constraints
// Never constrain to the safe area as Hover takes care of that
NSLayoutConstraint.activate(
    [
        hoverView.topAnchor.constraint(equalTo: view.topAnchor),
        hoverView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
        hoverView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
        hoverView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
    ]
)

For more details about all the parameters that you can configure, take a look into HoverConfiguration.swift.

πŸ“² Sample Project

There's a sample project in this repository with some samples of Hover called Example.

❀️ Support Hover

Hello there πŸ‘‹

I’m Pedro, a Portuguese iOS Engineer since February 2017. I’m an avid OSS enthusiast and contributor - help by sharing, learn by what’s shared.

I've built and open-sourced multiple frameworks and applications, including Brooklyn and CocoaHub.

I'm also a conference and meetup organizer, being part of SwiftAveiro and CocoaHeads Porto.

If you enjoy my work and would like to help me continue it, please consider:

πŸ™Œ Contributing

Feel free to contribute to this project by reporting bugs or open pull requests.

Hover was created for personal use but dynamic enough to be an open-source framework. As such, while functional, it may lack some additional customization. If there's something missing that you need, feel free to ask me here or on Twitter.

β›” License

Hover's available under the MIT license. See the LICENSE file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].