Coder Social home page Coder Social logo

Comments (5)

Kaspik avatar Kaspik commented on August 30, 2024

Put in your own custom UIView that has UICollectionView instead of keyboard, and load whatever content of the collection view you want.

from inputbaraccessoryview.

CainLuo avatar CainLuo commented on August 30, 2024

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.

feiyu92 avatar feiyu92 commented on August 30, 2024

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.

CainLuo avatar CainLuo commented on August 30, 2024

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.

xiaomage1478 avatar xiaomage1478 commented on August 30, 2024

Hello, do you know how inputTextView parses custom emoticons? For example, [dog] can be parsed as ๐Ÿถ

from inputbaraccessoryview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.