Code Monkey home page Code Monkey logo

Comments (6)

SD10 avatar SD10 commented on May 20, 2024 1

@agordeev There's no way to do this from the MessagesViewController. I'm looking to add a delegate method to make this possible. It's blocked by #356

from messagekit.

SD10 avatar SD10 commented on May 20, 2024

@MacMeDan You can customize this using the addressAttributes: [String: Any] property of MessageLabel. The thing is -- you can only change attributes that don't change the size of the layout, eg) underline, color, underline color. If you do, the layout won't render correctly.

This is likely to remain a limitation for awhile because fixing it requires the collectionView to know what attributes you're using in advance and also to parse the text for the detectors.

from messagekit.

MacMeDan avatar MacMeDan commented on May 20, 2024

I would suggest that we make a method that limits it to just those options underline, color, underline color. This way we do not have people breaking the layout when they style Data Detectors.

from messagekit.

SD10 avatar SD10 commented on May 20, 2024

@MacMeDan I kind of think that too, I even added it at first but removed it because there were 20+ properties. The thing is it doesn't offer any real protection. For example: If you set a different font for the message label than the one set in the layout object -- you will break the layout. We can't make these properties of UILabel private. This just has to be something that is made aware to people as a rule for using the project.

from messagekit.

SD10 avatar SD10 commented on May 20, 2024

Closing this because we have this functionality in v0.6.0

from messagekit.

agordeev avatar agordeev commented on May 20, 2024

@SD10 How do I access addressAttributes from a subclass of MessagesViewController?

from messagekit.

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.