FluidGroup / Bureau

An easy way to use input view to display custom-view on iOS UIKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bureau - A Container to display your customized view on UIKit's InputView

An easy way to display a custom view on the input view in UIKit.

Importantly to supports floating keyboard on iPadOS

Requirements

  • Swift 5.1
  • iOS 10 +

Usage

class ViewController: UIViewController {

  // πŸ’‘ Step.1 Put BureauController
  private let bureauController = BureauController()

  override func viewDidLoad() {
    super.viewDidLoad()

    // πŸ’‘ Step.2 Set the viewController as an owner.
    bureauController.setOwner(viewController: self)

    // πŸ’‘ Step.3 Create an instance of your custom input view.
    let yourCustomInputView = ...

    // πŸ’‘ Step.4 To display your input view, do followings.
    bureauController.containerView.addSubviewToEdges(view: yourCustomInputView)

    // πŸ’‘ Step.5 Finally, Let's try to show it.
    bureauController.show()

  }
}

Installations

Currently, supports only CocoaPods.

In Podfile, please put the following.

pod 'Bureau'

Author

Hiroshi Kimura

LICENSE

MIT

About

An easy way to use input view to display custom-view on iOS UIKit

License:MIT License


Languages

Language:Swift 91.0%Language:Ruby 5.1%Language:Objective-C 3.9%