messenger iOS chat swift firestore
1.0.0
これは、iOS Swiftチャットアプリの非常にシンプルなチャットアプリソースコードです。 MessageKitを活用し、Firebase Firestoreとの間でデータを保存および取得します。アプリのデザインは、Facebook Messengerに触発されています。 iOSチャットアプリのソースコードをクローンし、数分で完全に駆け出しのチャットをアプリに追加します。
わずか数行のコードで独自のiOSチャット機能を構築する方法を学びます。このiOSチャットアプリソースコードをクローンし、以下の手順に従って開始します。詳細については、公式のiOS Swiftチャットアプリページの詳細な技術文書をご覧ください。
最新のXcodeでビルドエラーが発生した場合は、Xcodeのレガシービルドシステム(ファイル - >ワークスペース設定)を実行していることを確認してください。
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ネイティブテンプレートを使用して作成されました。