Comments (5)
Put in your own custom UIView that has UICollectionView instead of keyboard, and load whatever content of the collection view you want.
from inputbaraccessoryview.
Put in your own custom UIView that has UICollectionView instead of keyboard, and load whatever content of the collection view you want.
I'm sorry, I didn't express myself accurately enough, I know how to implement the custom UIView at the bottom, in fact I want to know how to move the InputBarAccessoryView to the corresponding position when the custom UIView at the bottom comes out, because the KeyboardManager in the source code is listening to the relevant notifications, if I want to achieve the effect in the figure, do I need to rewrite the relevant notification methods?
from inputbaraccessoryview.
Put in your own custom UIView that has UICollectionView instead of keyboard, and load whatever content of the collection view you want.
I'm sorry, I didn't express myself accurately enough, I know how to implement the custom UIView at the bottom, in fact I want to know how to move the InputBarAccessoryView to the corresponding position when the custom UIView at the bottom comes out, because the KeyboardManager in the source code is listening to the relevant notifications, if I want to achieve the effect in the figure, do I need to rewrite the relevant notification methods?
enum FBKeyboardType {
case text
case emoji
case more
}
...
var keyboardType: FBKeyboardType = .text
...
let button = InputBarButtonItem()
.onTouchUpInside { item in
self.keyboardType = self.keyboardType == .text ? .more : .text
self.inputTextView.inputView = self.keyboardType == .more ? UIView(frame: CGRect(x: 0, y: 0, width: 375, height: 228)) : nil
self.inputTextView.reloadInputViews()
}
from inputbaraccessoryview.
Put in your own custom UIView that has UICollectionView instead of keyboard, and load whatever content of the collection view you want.
I'm sorry, I didn't express myself accurately enough, I know how to implement the custom UIView at the bottom, in fact I want to know how to move the InputBarAccessoryView to the corresponding position when the custom UIView at the bottom comes out, because the KeyboardManager in the source code is listening to the relevant notifications, if I want to achieve the effect in the figure, do I need to rewrite the relevant notification methods?
enum FBKeyboardType { case text case emoji case more } ... var keyboardType: FBKeyboardType = .text ... let button = InputBarButtonItem() .onTouchUpInside { item in self.keyboardType = self.keyboardType == .text ? .more : .text self.inputTextView.inputView = self.keyboardType == .more ? UIView(frame: CGRect(x: 0, y: 0, width: 375, height: 228)) : nil self.inputTextView.reloadInputViews() }
Thank you very much. Do you have a corresponding demo that I can run to see?
from inputbaraccessoryview.
Hello, do you know how inputTextView parses custom emoticons? For example, [dog] can be parsed as ๐ถ
from inputbaraccessoryview.
Related Issues (20)
- Unable to build framework when including this via SPM HOT 4
- Xcode 14: custom inputAccessoryView appears prematurely, causing broken push animation HOT 3
- Update library with main and create tag
- The mentionTextAttributes is used for pasting new text.
- iOS 17 issue with selection HOT 1
- InputBarAccessoryView & inputTextView disappeared after searchbar has focused HOT 2
- Changing access modifier of requiredInputTextViewHeight from public to open๏ผ HOT 5
- scrollIndicatorInsets setter Recursion causes crashes HOT 1
- Privacy manifest HOT 2
- About paste monitoring HOT 3
- Why AttachmentManager extensions methods are 'finals'? HOT 2
- How inputTextView parses custom emoticons?
- topStackView Stretched When Using setShouldForceMaxTextViewHeight HOT 2
- Varying height depending on additional content constraints?
- padding is broken when you try to set it twice
- Custom middleContentView height is not considered
- SKStoreReviewController makes an input bar hidden
- Input bar becomes hidden because of outer circumstances and never appears again
- Can KeyboardManager be extended for extensions?
- handleInput(of:) can only be used with UIImage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inputbaraccessoryview.