Comments (6)
@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.
@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.
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.
@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.
Closing this because we have this functionality in v0.6.0
from messagekit.
@SD10 How do I access addressAttributes
from a subclass of MessagesViewController
?
from messagekit.
Related Issues (20)
- How can I make the icon of pdf for Attachments? HOT 5
- Message Collection View Display Problem With Status Bar & Navigation Bar HOT 1
- When mentioning with @ if the username contains space the first name is recognised as the mentioned user.
- Not able to extend the bubble height with func textCellSizeCalculator
- insertmessage not always scrolling to bottom in iOS17 beta HOT 1
- On Copy Action HOT 2
- Cannot remove bottom padding for custom cells
- Does MessageKit have something similar to Message Pinning by IOS?
- Vulnerability Disclosure HOT 5
- Not showing Attributes top, bottom
- How to prevent the input bar from obscuring the scroll indicator?
- Message cell has wrong height when using NSAttributedString constructed from Markdown
- Could not build Objective-C module 'A', 'MessageKit/MessageKit.h' file not found.
- Duration time I stuck to set it
- Introduce PrivacyManifest HOT 4
- scrollToLastItem(at:animated:) is not scrolling to bottom properly. HOT 2
- Scroll up when keyboard appears, only when at the bottom.
- Could not find module 'MessageKit' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator HOT 1
- Text bubbles do not appear! HOT 1
- Message InputBarView Been added to all child views in container view
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 messagekit.