Swiftpack.co - muukii/Bureau as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by muukii.
muukii/Bureau 0.1.2
An easy way to use input view to display custom-view on iOS UIKit
⭐️ 9
🕓 1 week ago
iOS
.package(url: "https://github.com/muukii/Bureau.git", from: "0.1.2")

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

GitHub

link
Stars: 9
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics