SwiftyFloatingView icon indicating copy to clipboard operation
SwiftyFloatingView copied to clipboard

Floating View is a view on top of all views. It can show, move or hide anytime. Floating UI could be customized. 类似微信的浮动按钮,可以任意改变形状

SwiftyFloatingView

License Language

Overview

SwiftyFloatingView is a view on top of all views. you can have navigation controller, Tabbar contoller or anything. it goes on top of everyview and will be presented everywhere.

enter image description here

Installation

CocoaPods

SwiftyFloatingView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftyFloatingView'

Manual

Drag 'n drop SwiftyFloatingView.swift into your project.

Usage

        let normalButton:UIButton = UIButton(type:UIButton.ButtonType.system)
        normalButton.frame = CGRect(x: 0, y: 0, width: 100, height: 100)
        var floatingView = SwiftyFloatingView(with: normalButton)

Requirements

  • Swift 4.2
  • iOS 8.0+

Contact & Contribute

  • Feel free to contact me with ideas or suggestions at [email protected]
  • Fork the project and make your own changes

License

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