Giter VIP home page Giter VIP logo

Comments (7)

SD10 avatar SD10 commented on September 22, 2024 1

@bribar Could you please open a new issue on the InputBarAccessoryView project? For clarity, it would help to keep the discussion only related to the MessageViewControlelr library

from messageviewcontroller.

bribar avatar bribar commented on September 22, 2024 1

Sure thing!

nathantannar4/InputBarAccessoryView#25

from messageviewcontroller.

nathantannar4 avatar nathantannar4 commented on September 22, 2024

@bribar I implemented an autocomplete manager for my project. It binds to a UITextView. You could use it as a starting point! https://github.com/nathantannar4/InputBarAccessoryView/tree/master/InputBarAccessoryView/Plugins/AutocompleteManager

Sent with GitHawk

from messageviewcontroller.

bribar avatar bribar commented on September 22, 2024

@nathantannar4 Nice work! After reviewing... I didn't notice any optional protocols to capture the autocomplete selected (or typed completely) and also if removed. I looked through the protocols for AutocompleteManager and InputBar. Am I missing something or do I have to handle this myself?

Thanks bro!

from messageviewcontroller.

nathantannar4 avatar nathantannar4 commented on September 22, 2024

Use shouldUnregister to let you know if an autocomplete session is about to be destroyed, and shouldComplete for when someone has tapped on an autocomplete cell and wants to complete it. The text they have currently entered will be in the AutocompleteSession objects filter String property

Sent with GitHawk

from messageviewcontroller.

bribar avatar bribar commented on September 22, 2024

Ahhh, I felt like I was close...knew it was something with the session. Thanks!

from messageviewcontroller.

bribar avatar bribar commented on September 22, 2024

@nathantannar4 Using your example project... this is the output I get

image

Tried to access manager.currentSession as the optional in image above. The text parameter is empty in shouldComplete

Maybe I'm not understanding the last line of your comment?

from messageviewcontroller.

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.