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模板創建的。