Chatto
是一个Swift轻量级框架,用于构建聊天应用。它被设计为可扩展并性能优异。除了Chatto
外,还有配套框架ChattoAdditions
,其中包含消息单元格和可扩展的输入组件。你可以在我们的博客中找到更多关于如何实现的细节。看看它们的实际应用!
特性
- 在后台计算集合视图的更改和布局
- 支持双向分页和自动加载。
- 支持数千条消息的快速分页和轮询消息计数竞争。
- 从右侧滑动以揭示附加视图。
- 交互式键盘取消。
- 文本泡泡。
- 照片泡泡。
- 可扩展的输入栏。
如何使用
查看wiki!
如何安装
CocoaPods
-
确保在您的
Podfile
中添加了use_frameworks!
。 -
在您的
Podfile
中包括以下内容
# Swift 5
pod 'Chatto', '= 4.0.0'
pod 'ChattoAdditions', '= 4.0.0' # if you want to use the cells or the input component
# Swift 4.2
pod 'Chatto', '= 3.4.0'
pod 'ChattoAdditions', '= 3.4.0' # if you want to use the cells or the input component
# Swift 4
pod 'Chatto', '= 3.3.1'
pod 'ChattoAdditions', '= 3.3.1' # if you want to use the cells or the input component
# Swift 3
pod 'Chatto', '= 3.2.0'
pod 'ChattoAdditions', '= 3.2.0' # if you want to use the cells or the input component
# Swift 2.x
pod 'Chatto', '= 2.1.0'
pod 'ChattoAdditions', '= 2.1.0' # if you want to use the cells or the input component
如果您喜欢走在前沿,您可以使用master
分支
pod 'Chatto', :git => 'https://github.com/badoo/Chatto', :branch => 'master'
pod 'ChattoAdditions', :git => 'https://github.com/badoo/Chatto', :branch => 'master'
- 运行
pod install
Carthage
如果您使用Carthage,只需将Chatto添加到您的Cartfile中
# Swift 5
github "badoo/Chatto"
# Swift 2.x
github "badoo/Chatto" "swift-2"
手动
- 克隆、添加为子模块或下载。
- 将
Chatto
和/或ChattoAdditions
项目拖放到您的工作区 - 将
Chatto
和/或ChattoAdditions
添加到嵌入式二进制中
许可协议
源代码在MIT许可下分发。
Android
检查我们的同事项目Chateau!