https://github.com/fluidgroup/bureau
An easy way to use input view to display custom-view on iOS UIKit
https://github.com/fluidgroup/bureau
Last synced: 10 months ago
JSON representation
An easy way to use input view to display custom-view on iOS UIKit
- Host: GitHub
- URL: https://github.com/fluidgroup/bureau
- Owner: FluidGroup
- License: mit
- Created: 2019-10-01T12:00:35.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T12:46:56.000Z (over 3 years ago)
- Last Synced: 2025-08-12T10:58:09.479Z (11 months ago)
- Language: Swift
- Size: 2.69 MB
- Stars: 23
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```swift
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.
```ruby
pod 'Bureau'
```
## Author
Hiroshi Kimura
## LICENSE
MIT