Comments (3)
Hi @fceldeiro,
Have you tried the otherUserMessageTransition
and currentUserMessageTransition
options? https://getstream.io/chat/docs/sdk/ios/swiftui/message-components/message-display-options/
You can build your own transitions, e.g. slide, and combine it with other ones, e.g.:
AnyTransition.slide
.combined(with: AnyTransition.offset(
x: UIScreen.main.bounds.width / 2.0,
y: -80)
)
Hope that helps,
Martin
from stream-chat-swiftui.
Hello @martinmitrevski thanks for the quick reply. I've tried a few transitions, the one that looks more correct would be
.asymmetric(insertion: .move(edge: .top), removal: .opacity)
The need for using .top instead of the .bottom is due to the inverted list?
from stream-chat-swiftui.
Hey @fceldeiro,
Yes, that's correct - it's because of the inverted list.
Closing this ticket.
Best, Martin
from stream-chat-swiftui.
Related Issues (20)
- Message links HOT 2
- First message in a group HOT 1
- Mentions are missing HOT 15
- ViewFactory makeLoadingView not being used when viewModel.channel is nil HOT 5
- Unable to initialise some public structs with public property HOT 1
- Not possible to dismiss keyboard when coming from empty state HOT 4
- External edit of a message breaks message UI HOT 2
- Message Input Field Not Cleared When Sending While Japanese IME Candidates Are Displayed HOT 5
- Trying make custom FileAttachmentsContainer HOT 2
- Podspec Missing Tag Specification Causes Installation to Default to Main Branch HOT 2
- Missing import Foundation HOT 3
- makeChannelHeaderViewModifier(for channel: ChatChannel) not being invoked? HOT 2
- PhotoAttachmentCell not instantiatable due to internal protection level HOT 2
- Not possible to dismiss keyboard when coming from empty state - Reopened HOT 1
- message showing failed to send state, but unable to resend HOT 2
- Photos & Videos + Files do not show items shared in channel HOT 3
- Channel list - More actions menu - Mute and Delete user not showing Confirmation Popup HOT 2
- Apple rejected app because of permissions description HOT 2
- Custom long press animation on messages HOT 1
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 stream-chat-swiftui.