messenger iOS chat swift firestore
1.0.0
这是iOS Swift聊天应用程序的极其简单的聊天应用程序源代码。它利用消息套件及其存储并从Firebase Firestore中检索数据。该应用设计灵感来自Facebook Messenger。克隆iOS聊天应用程序源代码,并在几分钟之内将完全露面的聊天添加到您的应用中。
仅使用几行代码来了解如何构建自己的iOS聊天功能。克隆此iOS聊天应用程序源代码,然后开始遵循以下步骤。有关更多详细信息,请在官方iOS Swift聊天应用程序页面上查看我们的详细技术文档。
如果您在最新的Xcode中遇到构建错误,请确保运行Xcode的旧版构建系统(文件 - > workspace设置)。
pod update
pod update
let uiConfig = ATCChatUIConfiguration ( primaryColor : UIColor ( hexString : " #0084ff " ) ,
secondaryColor : UIColor ( hexString : " #f0f0f0 " ) ,
inputTextViewBgColor : UIColor ( hexString : " #f4f4f6 " ) ,
inputTextViewTextColor : . black ,
inputPlaceholderTextColor : UIColor ( hexString : " #979797 " ) )
let channel = ATCChatChannel ( id : " channel_id " , name : " Chat Title " )
let viewer = ATCUser ( firstName : " Florian " , lastName : " Marcu " )
let chatVC = ATCChatThreadViewController ( user : viewer , channel : channel , uiConfig : uiConfig )
// Present the chatVC view controller let mainThemeBackgroundColor : UIColor = . white
let mainThemeForegroundColor : UIColor = UIColor ( hexString : " #3068CC " )
let mainTextColor : UIColor = UIColor ( hexString : " #000000 " )
let mainSubtextColor : UIColor = UIColor ( hexString : " #7e7e7e " )
let statusBarStyle : UIStatusBarStyle = . default
let hairlineColor : UIColor = UIColor ( hexString : " #d6d6d6 " )
let regularSmallFont = UIFont . systemFont ( ofSize : 14 )
let regularMediumFont = UIFont . systemFont ( ofSize : 17 )
let regularLargeFont = UIFont . systemFont ( ofSize : 23 )
let mediumBoldFont = UIFont . boldSystemFont ( ofSize : 17 )
let boldLargeFont = UIFont . boldSystemFont ( ofSize : 23 )
let boldSmallFont = UIFont . boldSystemFont ( ofSize : 14 )
let boldSuperSmallFont = UIFont . boldSystemFont ( ofSize : 11 )
let boldSuperLargeFont = UIFont . boldSystemFont ( ofSize : 29 )
let italicMediumFont = UIFont . italicSystemFont ( ofSize : 17 )用爱编码并得到iOS应用模板的支持。
该项目是使用React Native模板创建的。