diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ad44bdd8..bd195a19 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,8 +8,6 @@ Please note we have a code of conduct, please follow it in all your interactions ## Pull Request Process - - 1. Ensure any install or build dependencies are removed before the end of the layer when doing a build. 2. Update the README.md with details of changes to the interface, this includes new environment diff --git a/CometChatSwift/CometChatSwift.xcodeproj/project.pbxproj b/CometChatSwift/CometChatSwift.xcodeproj/project.pbxproj index aa820daa..636f3cb7 100644 --- a/CometChatSwift/CometChatSwift.xcodeproj/project.pbxproj +++ b/CometChatSwift/CometChatSwift.xcodeproj/project.pbxproj @@ -24,9 +24,12 @@ 58FEC73324ED47D90004CC9B /* Home.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FEC72E24ED47D90004CC9B /* Home.swift */; }; 58FEC73424ED47D90004CC9B /* ComponentList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FEC72F24ED47D90004CC9B /* ComponentList.swift */; }; 840464DF28E4C0DC00231142 /* CreateUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 840464DE28E4C0DC00231142 /* CreateUser.swift */; }; + 840D4C6D2A2516C900E579AE /* CallButtonsComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 840D4C6B2A2516C900E579AE /* CallButtonsComponent.swift */; }; + 840D4C6E2A2516C900E579AE /* CallButtonsComponent.xib in Resources */ = {isa = PBXBuildFile; fileRef = 840D4C6C2A2516C900E579AE /* CallButtonsComponent.xib */; }; + 841351E22A2213A000BAE317 /* BubblesComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 841351E02A2213A000BAE317 /* BubblesComponent.swift */; }; + 841351E32A2213A000BAE317 /* BubblesComponent.xib in Resources */ = {isa = PBXBuildFile; fileRef = 841351E12A2213A000BAE317 /* BubblesComponent.xib */; }; 8414716F28BEA001008C6361 /* MessageReceiptCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8414716D28BEA001008C6361 /* MessageReceiptCell.swift */; }; 8414717028BEA001008C6361 /* MessageReceiptCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8414716E28BEA001008C6361 /* MessageReceiptCell.xib */; }; - 8422642129CAC85900EBA2F4 /* CometChatProCalls in Frameworks */ = {isa = PBXBuildFile; productRef = 8422642029CAC85900EBA2F4 /* CometChatProCalls */; }; 8428692828A51EA80076EF58 /* ModulesJson.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8428692728A51EA80076EF58 /* ModulesJson.swift */; }; 8428692A28A521FA0076EF58 /* CustomJsonModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8428692928A521FA0076EF58 /* CustomJsonModel.swift */; }; 842B179B28EAF8DF00BE86F1 /* GradientImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842B179A28EAF8DF00BE86F1 /* GradientImageView.swift */; }; @@ -36,7 +39,6 @@ 843A561A28A8985D0023BCF2 /* ThemeComponent.xib in Resources */ = {isa = PBXBuildFile; fileRef = 843A561828A8985D0023BCF2 /* ThemeComponent.xib */; }; 843DA76028ED5B610038A43C /* LoadingGif.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843DA75F28ED5B610038A43C /* LoadingGif.swift */; }; 843DA76428ED61770038A43C /* customLoading.gif in Resources */ = {isa = PBXBuildFile; fileRef = 843DA76328ED61770038A43C /* customLoading.gif */; }; - 845B5BCB29E5DCDD0042537C /* CometChatUIKit in Frameworks */ = {isa = PBXBuildFile; productRef = 845B5BCA29E5DCDD0042537C /* CometChatUIKit */; }; 8466966028ACC98C00163187 /* JsonDecoding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8466965F28ACC98C00163187 /* JsonDecoding.swift */; }; 84B402BA28A6479700F6C5E3 /* ViewTransformation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84B4014728A6479700F6C5E3 /* ViewTransformation.swift */; }; 84B403CB28A64BD700F6C5E3 /* ShowAlert.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84B403C828A64BD700F6C5E3 /* ShowAlert.swift */; }; @@ -123,6 +125,10 @@ 58FEC72E24ED47D90004CC9B /* Home.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Home.swift; sourceTree = ""; }; 58FEC72F24ED47D90004CC9B /* ComponentList.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ComponentList.swift; sourceTree = ""; }; 840464DE28E4C0DC00231142 /* CreateUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreateUser.swift; sourceTree = ""; }; + 840D4C6B2A2516C900E579AE /* CallButtonsComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallButtonsComponent.swift; sourceTree = ""; }; + 840D4C6C2A2516C900E579AE /* CallButtonsComponent.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CallButtonsComponent.xib; sourceTree = ""; }; + 841351E02A2213A000BAE317 /* BubblesComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BubblesComponent.swift; sourceTree = ""; }; + 841351E12A2213A000BAE317 /* BubblesComponent.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = BubblesComponent.xib; sourceTree = ""; }; 8414716D28BEA001008C6361 /* MessageReceiptCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageReceiptCell.swift; sourceTree = ""; }; 8414716E28BEA001008C6361 /* MessageReceiptCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MessageReceiptCell.xib; sourceTree = ""; }; 8428692728A51EA80076EF58 /* ModulesJson.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModulesJson.swift; sourceTree = ""; }; @@ -192,8 +198,6 @@ buildActionMask = 2147483647; files = ( 582C7DE5295C3EE80050CEDA /* CometChatUIKit in Frameworks */, - 845B5BCB29E5DCDD0042537C /* CometChatUIKit in Frameworks */, - 8422642129CAC85900EBA2F4 /* CometChatProCalls in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -246,6 +250,24 @@ path = "CometChat KitchenSinkTests"; sourceTree = ""; }; + 840D4C6A2A25169F00E579AE /* Calls */ = { + isa = PBXGroup; + children = ( + 840D4C6B2A2516C900E579AE /* CallButtonsComponent.swift */, + 840D4C6C2A2516C900E579AE /* CallButtonsComponent.xib */, + ); + path = Calls; + sourceTree = ""; + }; + 841351DF2A22106300BAE317 /* Bubbles */ = { + isa = PBXGroup; + children = ( + 841351E02A2213A000BAE317 /* BubblesComponent.swift */, + 841351E12A2213A000BAE317 /* BubblesComponent.xib */, + ); + path = Bubbles; + sourceTree = ""; + }; 8428692628A51E4A0076EF58 /* CustomJson */ = { isa = PBXGroup; children = ( @@ -333,6 +355,7 @@ 84B4048F28A6776600F6C5E3 /* Components */ = { isa = PBXGroup; children = ( + 840D4C6A2A25169F00E579AE /* Calls */, 84B4049028A6777B00F6C5E3 /* Messages */, 843A561528A897D00023BCF2 /* Shared */, ); @@ -469,6 +492,7 @@ 84EB324228B5E108005D7C20 /* BadgeCount */, 84EB324128B5E0F8005D7C20 /* StatusIndicator */, 84EB323F28B5DC00005D7C20 /* MessageReceipt */, + 841351DF2A22106300BAE317 /* Bubbles */, ); path = SecondaryComponent; sourceTree = ""; @@ -578,8 +602,6 @@ name = CometChatSwift; packageProductDependencies = ( 582C7DE4295C3EE80050CEDA /* CometChatUIKit */, - 8422642029CAC85900EBA2F4 /* CometChatProCalls */, - 845B5BCA29E5DCDD0042537C /* CometChatUIKit */, ); productName = Demo; productReference = DBFBC46A23A7B9230027938E /* CometChat KitchenSink.app */; @@ -632,8 +654,6 @@ ); mainGroup = DBFBC46123A7B9230027938E; packageReferences = ( - 8422641F29CAC85900EBA2F4 /* XCRemoteSwiftPackageReference "ios-calls-sdk" */, - 845B5BC929E5DCDD0042537C /* XCRemoteSwiftPackageReference "ios-swift-chat-ui-kit" */, ); productRefGroup = DBFBC46B23A7B9230027938E /* Products */; projectDirPath = ""; @@ -666,6 +686,7 @@ buildActionMask = 2147483647; files = ( 84B4049528A677C000F6C5E3 /* MessageListComponent.xib in Resources */, + 840D4C6E2A2516C900E579AE /* CallButtonsComponent.xib in Resources */, 84B5A7C828C0BB3900B621C7 /* SoundManagerComponent.xib in Resources */, DBFBC47823A7B9240027938E /* LaunchScreen.storyboard in Resources */, 84B5A7CC28C0C23000B621C7 /* LocalisationComponent.xib in Resources */, @@ -682,6 +703,7 @@ DBFBC47323A7B9230027938E /* Main.storyboard in Resources */, DBED2A3F23AA50750058D5BF /* UIComponentsCell.xib in Resources */, 84EB325428B5E444005D7C20 /* MessageReceiptModification.xib in Resources */, + 841351E32A2213A000BAE317 /* BubblesComponent.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -743,6 +765,7 @@ 58FEC73324ED47D90004CC9B /* Home.swift in Sources */, 84B4F42228E3261F0056DA9B /* Splash.swift in Sources */, 8414716F28BEA001008C6361 /* MessageReceiptCell.swift in Sources */, + 841351E22A2213A000BAE317 /* BubblesComponent.swift in Sources */, 843DA76028ED5B610038A43C /* LoadingGif.swift in Sources */, 84B5A7CB28C0C23000B621C7 /* LocalisationComponent.swift in Sources */, 58FEC73424ED47D90004CC9B /* ComponentList.swift in Sources */, @@ -759,6 +782,7 @@ 8428692A28A521FA0076EF58 /* CustomJsonModel.swift in Sources */, 84B5A7CF28C0DADF00B621C7 /* DeviceDetection.swift in Sources */, 8439543428F6700A00E8F805 /* Home + LaunchDelegate.swift in Sources */, + 840D4C6D2A2516C900E579AE /* CallButtonsComponent.swift in Sources */, 843A561928A8985D0023BCF2 /* ThemeComponent.swift in Sources */, 8466966028ACC98C00163187 /* JsonDecoding.swift in Sources */, 84EB325328B5E444005D7C20 /* MessageReceiptModification.swift in Sources */, @@ -1126,40 +1150,11 @@ }; /* End XCConfigurationList section */ -/* Begin XCRemoteSwiftPackageReference section */ - 8422641F29CAC85900EBA2F4 /* XCRemoteSwiftPackageReference "ios-calls-sdk" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/cometchat-pro/ios-calls-sdk.git"; - requirement = { - kind = exactVersion; - version = 3.0.0; - }; - }; - 845B5BC929E5DCDD0042537C /* XCRemoteSwiftPackageReference "ios-swift-chat-ui-kit" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/cometchat-pro/ios-swift-chat-ui-kit.git"; - requirement = { - kind = exactVersion; - version = "3.0.912-pluto.beta.2.0"; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - /* Begin XCSwiftPackageProductDependency section */ 582C7DE4295C3EE80050CEDA /* CometChatUIKit */ = { isa = XCSwiftPackageProductDependency; productName = CometChatUIKit; }; - 8422642029CAC85900EBA2F4 /* CometChatProCalls */ = { - isa = XCSwiftPackageProductDependency; - package = 8422641F29CAC85900EBA2F4 /* XCRemoteSwiftPackageReference "ios-calls-sdk" */; - productName = CometChatProCalls; - }; - 845B5BCA29E5DCDD0042537C /* CometChatUIKit */ = { - isa = XCSwiftPackageProductDependency; - package = 845B5BC929E5DCDD0042537C /* XCRemoteSwiftPackageReference "ios-swift-chat-ui-kit" */; - productName = CometChatUIKit; - }; /* End XCSwiftPackageProductDependency section */ }; rootObject = DBFBC46223A7B9230027938E /* Project object */; diff --git a/CometChatSwift/CometChatSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/CometChatSwift/CometChatSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index a54d2351..00000000 --- a/CometChatSwift/CometChatSwift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,32 +0,0 @@ -{ - "pins" : [ - { - "identity" : "ios-calls-sdk", - "kind" : "remoteSourceControl", - "location" : "https://github.com/cometchat-pro/ios-calls-sdk.git", - "state" : { - "revision" : "1cbece0fdf153e1a8fcbe9da4f405f9a0b9c0e42", - "version" : "3.0.0" - } - }, - { - "identity" : "ios-chat-sdk", - "kind" : "remoteSourceControl", - "location" : "https://github.com/cometchat-pro/ios-chat-sdk.git", - "state" : { - "revision" : "5b71a274bfe10943a6542cb18eb2b46a593786fb", - "version" : "3.0.912" - } - }, - { - "identity" : "ios-swift-chat-ui-kit", - "kind" : "remoteSourceControl", - "location" : "https://github.com/cometchat-pro/ios-swift-chat-ui-kit.git", - "state" : { - "revision" : "72569b54d3b31eb5c4538d2de3dc1fca7c013612", - "version" : "3.0.912-pluto.beta.2.0" - } - } - ], - "version" : 2 -} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/Contents.json new file mode 100644 index 00000000..f98b22e9 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "colors @1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "colors @2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "colors @3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @1x.png new file mode 100644 index 00000000..88d70b1d Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @2x.png new file mode 100644 index 00000000..1ed01488 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @3x.png new file mode 100644 index 00000000..ced01af7 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/Icon set/theme.imageset/colors @3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/Contents.json new file mode 100644 index 00000000..5dc1c69f --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "account@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "account@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "account@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@1x.png new file mode 100644 index 00000000..7723b90d Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@2x.png new file mode 100644 index 00000000..dcd7ca8b Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@3x.png new file mode 100644 index 00000000..4b74cc19 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/account.imageset/account@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/Contents.json new file mode 100644 index 00000000..35924c83 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "add-user@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "add-user@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "add-user@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@1x.png new file mode 100644 index 00000000..07b5b733 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@2x.png new file mode 100644 index 00000000..5a7c4416 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@3x.png new file mode 100644 index 00000000..834c121b Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/add-user.imageset/add-user@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/Contents.json new file mode 100644 index 00000000..e9da910a --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "ban-user@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "ban-user@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "ban-user@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@1x.png new file mode 100644 index 00000000..f120f734 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@2x.png new file mode 100644 index 00000000..ec4cbd3e Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@3x.png new file mode 100644 index 00000000..b7342122 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/ban-user.imageset/ban-user@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/Contents.json new file mode 100644 index 00000000..1b31f41e --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "chat-group@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "chat-group@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "chat-group@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@1x.png new file mode 100644 index 00000000..75514de2 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@2x.png new file mode 100644 index 00000000..b8370486 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@3x.png new file mode 100644 index 00000000..bc3e1526 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat-group.imageset/chat-group@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/Contents.json new file mode 100644 index 00000000..01b40b04 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "chat@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "chat@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "chat@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@1x.png new file mode 100644 index 00000000..5c488755 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@2x.png new file mode 100644 index 00000000..b4752f43 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@3x.png new file mode 100644 index 00000000..b3e7fd11 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/chat.imageset/chat@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/Contents.json new file mode 100644 index 00000000..d0ded8de --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "compose@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "compose@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "compose@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@1x.png new file mode 100644 index 00000000..044bc970 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@2x.png new file mode 100644 index 00000000..84a5b0d4 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@3x.png new file mode 100644 index 00000000..f0c048a6 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/compose.imageset/compose@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/Contents.json new file mode 100644 index 00000000..f3921e12 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "conversations-with-messages@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "conversations-with-messages@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "conversations-with-messages@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@1x.png new file mode 100644 index 00000000..66ad3b87 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@2x.png new file mode 100644 index 00000000..5ded40a6 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@3x.png new file mode 100644 index 00000000..3d2d17ea Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations-with-messages.imageset/conversations-with-messages@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/Contents.json new file mode 100644 index 00000000..94f0cc34 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "conversations@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "conversations@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "conversations@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@1x.png new file mode 100644 index 00000000..9b20ccfa Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@2x.png new file mode 100644 index 00000000..3dd74d98 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@3x.png new file mode 100644 index 00000000..dc536829 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/conversations.imageset/conversations@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/Contents.json new file mode 100644 index 00000000..57a6b077 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "create-group-button@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "create-group-button@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "create-group-button@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@1x.png new file mode 100644 index 00000000..a7241cdd Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@2x.png new file mode 100644 index 00000000..f7d1c8c4 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@3x.png new file mode 100644 index 00000000..f4d813bc Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/create-group-button.imageset/create-group-button@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/Contents.json new file mode 100644 index 00000000..f533cd4c --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "folder@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "folder@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "folder@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@1x.png new file mode 100644 index 00000000..5e26e18d Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@2x.png new file mode 100644 index 00000000..0f839978 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@3x.png new file mode 100644 index 00000000..867a2f47 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/folder-icon.imageset/folder@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/Contents.json new file mode 100644 index 00000000..7feb7fae --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "group-chat@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "group-chat@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "group-chat@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@1x.png new file mode 100644 index 00000000..0e95c2c0 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@2x.png new file mode 100644 index 00000000..84762013 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@3x.png new file mode 100644 index 00000000..00e3cd80 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group-chat.imageset/group-chat@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/Contents.json new file mode 100644 index 00000000..02cb7ea6 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "group@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "group@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "group@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@1x.png new file mode 100644 index 00000000..739a538a Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@2x.png new file mode 100644 index 00000000..d36aa01b Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@3x.png new file mode 100644 index 00000000..0d9ca870 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/group.imageset/group@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/Contents.json new file mode 100644 index 00000000..e48a515b --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "id-card@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "id-card@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "id-card@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@1x.png new file mode 100644 index 00000000..a2f525e2 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@2x.png new file mode 100644 index 00000000..84a1c496 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@3x.png new file mode 100644 index 00000000..65cabb1f Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/id-card.imageset/id-card@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/Contents.json new file mode 100644 index 00000000..3307528f --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "image@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "image@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "image@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@1x.png new file mode 100644 index 00000000..064f2963 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@2x.png new file mode 100644 index 00000000..e2840049 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@3x.png new file mode 100644 index 00000000..7a01b7e8 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/image.imageset/image@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/Contents.json new file mode 100644 index 00000000..cee14ea3 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "menu@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "menu@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "menu@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@1x.png new file mode 100644 index 00000000..7ed958e1 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@2x.png new file mode 100644 index 00000000..e861f360 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@3x.png new file mode 100644 index 00000000..9186181e Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/menu.imageset/menu@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/Contents.json new file mode 100644 index 00000000..189fd64b --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "message-list@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "message-list@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "message-list@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@1x.png new file mode 100644 index 00000000..553c68bd Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@2x.png new file mode 100644 index 00000000..701dcaf6 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@3x.png new file mode 100644 index 00000000..c6f7aee2 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-list.imageset/message-list@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/Contents.json new file mode 100644 index 00000000..301b8f68 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "message@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "message@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "message@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@1x.png new file mode 100644 index 00000000..5db4a337 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@2x.png new file mode 100644 index 00000000..b156385f Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@3x.png new file mode 100644 index 00000000..6531b20e Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/message-text-icon.imageset/message@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/Contents.json new file mode 100644 index 00000000..e1f728f5 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "shield-with-lock@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "shield-with-lock@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "shield-with-lock@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@1x.png new file mode 100644 index 00000000..cc95e1ad Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@2x.png new file mode 100644 index 00000000..76238a81 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@3x.png new file mode 100644 index 00000000..f3ef01fd Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/shield-with-lock.imageset/shield-with-lock@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/Contents.json new file mode 100644 index 00000000..d1459f96 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "transfer-ownership@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "transfer-ownership@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "transfer-ownership@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@1x.png new file mode 100644 index 00000000..0b417b6f Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@2x.png new file mode 100644 index 00000000..010a9d57 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@3x.png new file mode 100644 index 00000000..e24fdfa8 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/transfer-ownership.imageset/transfer-ownership@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/Contents.json new file mode 100644 index 00000000..98524b1b --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "user-plus@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "user-plus@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "user-plus@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@1x.png new file mode 100644 index 00000000..d5cfae72 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@2x.png new file mode 100644 index 00000000..8b9aacde Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@3x.png new file mode 100644 index 00000000..990fdc7e Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-plus.imageset/user-plus@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/Contents.json new file mode 100644 index 00000000..1291e3a0 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "user-solid@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "user-solid@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "user-solid@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@1x.png new file mode 100644 index 00000000..4ecefb39 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@2x.png new file mode 100644 index 00000000..5b820eb8 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@3x.png new file mode 100644 index 00000000..f35c539b Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user-solid.imageset/user-solid@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/Contents.json new file mode 100644 index 00000000..08670ee0 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "user@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "user@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "user@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@1x.png new file mode 100644 index 00000000..0cbcaf33 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@2x.png new file mode 100644 index 00000000..dbb9d2dc Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@3x.png new file mode 100644 index 00000000..8d825be8 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/user.imageset/user@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/Contents.json new file mode 100644 index 00000000..eec325f6 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "users-chat@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "users-chat@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "users-chat@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@1x.png new file mode 100644 index 00000000..7ec40e86 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@2x.png new file mode 100644 index 00000000..4c35d9d5 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@3x.png new file mode 100644 index 00000000..21dfbeb0 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/users-chat.imageset/users-chat@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/Contents.json new file mode 100644 index 00000000..56f12e30 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "video@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "video@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "video@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@1x.png new file mode 100644 index 00000000..cc4714a0 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@2x.png new file mode 100644 index 00000000..e3550e7a Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@3x.png new file mode 100644 index 00000000..1d94e97f Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/video-icon.imageset/video@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/Contents.json b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/Contents.json new file mode 100644 index 00000000..e525dc60 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "volume@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "volume@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "volume@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@1x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@1x.png new file mode 100644 index 00000000..37646ae9 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@1x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@2x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@2x.png new file mode 100644 index 00000000..f877bdb4 Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@2x.png differ diff --git a/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@3x.png b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@3x.png new file mode 100644 index 00000000..c1da25ea Binary files /dev/null and b/CometChatSwift/CometChatSwift/Assets.xcassets/icons/volume-icon.imageset/volume@3x.png differ diff --git a/CometChatSwift/CometChatSwift/Base.lproj/Main.storyboard b/CometChatSwift/CometChatSwift/Base.lproj/Main.storyboard index d7cba690..b7586f23 100755 --- a/CometChatSwift/CometChatSwift/Base.lproj/Main.storyboard +++ b/CometChatSwift/CometChatSwift/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -27,7 +27,7 @@ - + @@ -85,10 +85,10 @@ - + - + @@ -96,7 +96,7 @@ - + - + @@ -380,7 +380,7 @@ - + @@ -392,10 +392,10 @@ - @@ -413,7 +413,7 @@ - + @@ -875,7 +875,7 @@ - + @@ -898,10 +898,10 @@ - @@ -920,7 +920,7 @@ - + diff --git a/CometChatSwift/CometChatSwift/Components/Calls/CallButtonsComponent.swift b/CometChatSwift/CometChatSwift/Components/Calls/CallButtonsComponent.swift new file mode 100644 index 00000000..77e21328 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Components/Calls/CallButtonsComponent.swift @@ -0,0 +1,55 @@ +// +// CallButtonsComponent.swift +// CometChatSwift +// +// Created by Ajay Verma on 29/05/23. +// Copyright © 2023 MacMini-03. All rights reserved. +// + +import UIKit +import CometChatPro +import CometChatUIKit + +class CallButtonsComponent: UIViewController { + + @IBOutlet weak var containerView: UIView! + + override func viewDidLoad() { + super.viewDidLoad() + self.view.backgroundColor = .systemFill + self.containerView.dropShadow() + setupCallButtons() + setupView() + } + + func setupCallButtons() { + let callingButton = CometChatCallButtons(width: 70, height: 70) + callingButton.set(controller: self) + let view = UIStackView() + view.translatesAutoresizingMaskIntoConstraints = false + view.heightAnchor.constraint(equalToConstant: 50).isActive = true + view.widthAnchor.constraint(equalToConstant: 100).isActive = true + view.spacing = 10 + view.distribution = .fillEqually + let user = User(uid: "superhero2", name: "Captain America") + callingButton.set(user: user) + view.addArrangedSubview(callingButton) + + containerView.addSubview(view) + containerView.addConstraint(NSLayoutConstraint(item: callingButton, attribute: NSLayoutConstraint.Attribute.centerX, relatedBy: NSLayoutConstraint.Relation.equal, toItem: containerView, attribute: NSLayoutConstraint.Attribute.centerX, multiplier: 1, constant: 0)) + containerView.addConstraint(NSLayoutConstraint(item: callingButton, attribute: NSLayoutConstraint.Attribute.centerY, relatedBy: NSLayoutConstraint.Relation.equal, toItem: containerView, attribute: NSLayoutConstraint.Attribute.centerY, multiplier: 1, constant: 0)) + } + + func setupView() { + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } + } + + @IBAction func didCloseButtonPressed(_ sender: UIButton) { + dismiss(animated: true) + } + +} diff --git a/CometChatSwift/CometChatSwift/Components/Calls/CallButtonsComponent.xib b/CometChatSwift/CometChatSwift/Components/Calls/CallButtonsComponent.xib new file mode 100644 index 00000000..7d10f627 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Components/Calls/CallButtonsComponent.xib @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CometChatSwift/CometChatSwift/Components/Messages/MessageComposer /MesaageComposerComponent.swift b/CometChatSwift/CometChatSwift/Components/Messages/MessageComposer /MesaageComposerComponent.swift index f46b271c..240794f6 100644 --- a/CometChatSwift/CometChatSwift/Components/Messages/MessageComposer /MesaageComposerComponent.swift +++ b/CometChatSwift/CometChatSwift/Components/Messages/MessageComposer /MesaageComposerComponent.swift @@ -16,9 +16,12 @@ class MesaageComposerComponent: UIViewController { @IBOutlet weak var messageComposerContainer: UIView! func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + self.messageCompser.set(controller: self) + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } override func viewDidLoad() { diff --git a/CometChatSwift/CometChatSwift/Components/Messages/MessageHeader/MessageHeaderComponent.swift b/CometChatSwift/CometChatSwift/Components/Messages/MessageHeader/MessageHeaderComponent.swift index f17a2070..a73cef80 100644 --- a/CometChatSwift/CometChatSwift/Components/Messages/MessageHeader/MessageHeaderComponent.swift +++ b/CometChatSwift/CometChatSwift/Components/Messages/MessageHeader/MessageHeaderComponent.swift @@ -17,9 +17,11 @@ class MessageHeaderComponent: UIViewController { var user = User(uid: "superHero2", name: "Captain America") func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } override func viewDidLoad() { diff --git a/CometChatSwift/CometChatSwift/Components/Messages/MessagesList/MessageListComponent.swift b/CometChatSwift/CometChatSwift/Components/Messages/MessagesList/MessageListComponent.swift index 4c37a717..6630b166 100644 --- a/CometChatSwift/CometChatSwift/Components/Messages/MessagesList/MessageListComponent.swift +++ b/CometChatSwift/CometChatSwift/Components/Messages/MessagesList/MessageListComponent.swift @@ -16,10 +16,11 @@ class MessageListComponent: UIViewController { @IBOutlet weak var messageList: CometChatMessageList! func setupView() { - let blurredView = blurView(view: self.view) - blurredView.frame = view.bounds - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } override func viewDidLoad() { @@ -49,7 +50,7 @@ class MessageListComponent: UIViewController { var types = [String]() var categories = [String]() var templates = [(type: String, template: CometChatMessageTemplate)]() - let messageTypes = MessageUtils.getDefaultMessageTypes() + let messageTypes = ChatConfigurator.getDataSource().getAllMessageTemplates() for template in messageTypes { if !(categories.contains(template.category)){ categories.append(template.category) diff --git a/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/CometChatTheme + Component/ThemeComponent.swift b/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/CometChatTheme + Component/ThemeComponent.swift index ace26574..ee2ece05 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/CometChatTheme + Component/ThemeComponent.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/CometChatTheme + Component/ThemeComponent.swift @@ -24,9 +24,11 @@ class ThemeComponent: UIViewController { var typography = Typography() func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYLCE diff --git a/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/Localize/LocalisationComponent.swift b/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/Localize/LocalisationComponent.swift index 4353ddb1..c0d034bc 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/Localize/LocalisationComponent.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/Localize/LocalisationComponent.swift @@ -18,9 +18,11 @@ class LocalisationComponent: UIViewController { @IBOutlet weak var gradientBackground: GradientImageView! func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYCLE diff --git a/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/SoundManager + Componet/SoundManagerComponent.swift b/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/SoundManager + Componet/SoundManagerComponent.swift index ec1b2efe..f3876727 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/SoundManager + Componet/SoundManagerComponent.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/PrimaryComponent/SoundManager + Componet/SoundManagerComponent.swift @@ -18,9 +18,11 @@ class SoundManagerComponent: UIViewController { @IBOutlet weak var containerView: UIView! func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYCLE diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SDK Derived/ListItem/ListItem.swift b/CometChatSwift/CometChatSwift/Components/Shared/SDK Derived/ListItem/ListItem.swift index 930f7af6..14d273c5 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/SDK Derived/ListItem/ListItem.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/SDK Derived/ListItem/ListItem.swift @@ -36,9 +36,11 @@ class ListItem: UIViewController { var textMesssage = TextMessage(receiverUid: "superhero2", text: "You have new message", receiverType: .user) func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYCLE diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Avatar/AvatarModification.swift b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Avatar/AvatarModification.swift index 86800a26..2cbf5808 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Avatar/AvatarModification.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Avatar/AvatarModification.swift @@ -19,9 +19,11 @@ class AvatarModification: UIViewController { @IBOutlet weak var imageSegment: UISegmentedControl! func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYCLE @@ -66,7 +68,7 @@ class AvatarModification: UIViewController { // self.avatar.set(cornerRadius: CometChatCorner(cornerRadius: CGFloat(truncating: NumberFormatter().number(from: avatarCornerRadius.text ?? "0") ?? 75))) - self.avatar.set(cornerRadius: CometChatCornerStyle(cornerRadius: CGFloat(truncating: NumberFormatter().number(from: avatarCornerRadius.text ?? "0") ?? 75))) + self.avatar.set(cornerRadius: CometChatCornerStyle(cornerRadius: CGFloat(truncating: NumberFormatter().number(from: avatarCornerRadius.text ?? "0") ?? avatar.bounds.width / 2 as NSNumber))) } } diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/BadgeCount/BadgeCountModification.swift b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/BadgeCount/BadgeCountModification.swift index 5873ec78..3ad2af99 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/BadgeCount/BadgeCountModification.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/BadgeCount/BadgeCountModification.swift @@ -21,19 +21,21 @@ class BadgeCountModification: UIViewController { var countUnreadMessage : Int? func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYCLE override func viewDidLoad() { super.viewDidLoad() - if #available(iOS 13.0, *) { - view.backgroundColor = .systemFill - badgeCountView.dropShadow() - badgeCount.set(cornerRadius: 27) - } else {} + view.backgroundColor = .systemFill + badgeCount.set(count: 1) + badgeCountView.dropShadow() + badgeCount.set(cornerRadius: 27) + badgeCount.set(backgroundColor: .systemBlue) setupView() } @@ -43,6 +45,21 @@ class BadgeCountModification: UIViewController { } @IBAction func badgeCountBackgroundPressed(_ sender: Any) { + setupBadgeCountBackground() + } + + @IBAction func badgeCountValueChanged(_ sender: UITextField) { + if count.text?.isEmpty == true { + badgeCount.set(count: 0) + } else { + countUnreadMessage = Int(count.text ?? "0") + badgeCount.set(count: countUnreadMessage ?? 0) + setupBadgeCountBackground() + } + + } + + func setupBadgeCountBackground() { switch badgeCountBackgroundColor.selectedSegmentIndex { case 0: badgeCount.set(backgroundColor: .systemBlue) badgeCountBackgroundColor.selectedSegmentTintColor = .systemBlue @@ -56,13 +73,4 @@ class BadgeCountModification: UIViewController { default: break } } - - @IBAction func badgeCountValueChanged(_ sender: UITextField) { - if count.text?.isEmpty == true { - badgeCount.text = "0" - } else { - countUnreadMessage = Int(count.text ?? "1") - badgeCount.set(count: countUnreadMessage ?? 1) - } - } } diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Bubbles/BubblesComponent.swift b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Bubbles/BubblesComponent.swift new file mode 100644 index 00000000..28229651 --- /dev/null +++ b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Bubbles/BubblesComponent.swift @@ -0,0 +1,140 @@ +// +// BubblesComponent.swift +// CometChatSwift +// +// Created by Ajay Verma on 27/05/23. +// Copyright © 2023 MacMini-03. All rights reserved. +// + +import UIKit +import CometChatPro +import CometChatUIKit + +enum BubbleType { + case textBubble, imageBubble, videoBubble, audioBubble, fileBubble +} + +class BubblesComponent: UIViewController { + @IBOutlet weak var shadowView: UIView! + @IBOutlet weak var container: UIView! + var bubbleType: BubbleType? + let imageUrl = "https://data-us.cometchat.io/2379614bd4db65dd/media/1682517838_2050398854_08d684e835e3c003f70f2478f937ed57.jpeg" + let videoUrl = "https://data-us.cometchat.io/2379614bd4db65dd/media/1682517886_527585446_3e8e02fc506fa535eecfe0965e1a2024.mp4" + let videoThumbnailUrl = "https://data-us.cometchat.io/2379614bd4db65dd/media/1682666720_1080372877_5efc5c9d02a7133f3d25e67e7eca4572.png" + let audioUrl = "https://data-us.cometchat.io/2379614bd4db65dd/media/1682517916_1406731591_130612180fb2e657699814eb52817574.mp3" + let fileUrl = "https://data-us.cometchat.io/2379614bd4db65dd/media/1682517934_233027292_069741a92a2f641eb428ba6d12ccb9af.pdf" + + ///Life cycle method + override func viewDidLoad() { + super.viewDidLoad() + self.view.backgroundColor = .systemFill + self.shadowView.dropShadow() + addBubble() + setupView() + } + + func setupView() { + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } + } + + func addBubble() { + switch bubbleType { + + case .textBubble: + showTextBubble() + break + + case .imageBubble: + showImageBubble() + break + + case .videoBubble: + showVideoBubble() + break + + case .audioBubble: + showAudioBubble() + break + + case .fileBubble: + showFileBubble() + break + + case .none: + break + } + + } + + func showTextBubble() { + let textBubble = CometChatTextBubble() + textBubble.set(text: "Hello, how are you?") + textBubble.set(cornerRadius: CometChatCornerStyle(cornerRadius: 10.0)) + textBubble.set(backgroundColor: CometChatTheme.palatte.secondary) + container.addSubview(textBubble) + container.addConstraint(NSLayoutConstraint(item: textBubble, attribute: NSLayoutConstraint.Attribute.centerX, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerX, multiplier: 1, constant: 0)) + container.addConstraint(NSLayoutConstraint(item: textBubble, attribute: NSLayoutConstraint.Attribute.centerY, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerY, multiplier: 1, constant: 0)) + } + + func showImageBubble() { + let imageBubble = CometChatImageBubble() + imageBubble.set(cornerRadius: CometChatCornerStyle(cornerRadius: 10.0)) + imageBubble.set(controller: self) + imageBubble.set(backgroundColor: CometChatTheme.palatte.secondary) + imageBubble.set(imageUrl: imageUrl) + imageBubble.set(caption: "") + container.addSubview(imageBubble) + container.addConstraint(NSLayoutConstraint(item: imageBubble, attribute: NSLayoutConstraint.Attribute.centerX, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerX, multiplier: 1, constant: 0)) + container.addConstraint(NSLayoutConstraint(item: imageBubble, attribute: NSLayoutConstraint.Attribute.centerY, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerY, multiplier: 1, constant: 0)) + + } + + func showVideoBubble() { + let videoBubble = CometChatVideoBubble() + videoBubble.set(controller: self) + videoBubble.set(corner: CometChatCornerStyle(cornerRadius: 10.0)) + videoBubble.set(backgroundColor: CometChatTheme.palatte.secondary) + videoBubble.set(thumnailImageUrl: videoThumbnailUrl) + videoBubble.set(videoURL: videoUrl) + container.addSubview(videoBubble) + container.addConstraint(NSLayoutConstraint(item: videoBubble, attribute: NSLayoutConstraint.Attribute.centerX, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerX, multiplier: 1, constant: 0)) + container.addConstraint(NSLayoutConstraint(item: videoBubble, attribute: NSLayoutConstraint.Attribute.centerY, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerY, multiplier: 1, constant: 0)) + } + + func showAudioBubble() { + let audioBubble = CometChatAudioBubble() + audioBubble.set(controller: self) + audioBubble.set(backgroundColor: CometChatTheme.palatte.secondary) + audioBubble.set(cornerRadius: CometChatCornerStyle(cornerRadius: 10.0)) + audioBubble.set(title: "Music") + audioBubble.set(subTitle: "Disco") + audioBubble.set(fileURL: audioUrl) + container.addSubview(audioBubble) + container.addConstraint(NSLayoutConstraint(item: audioBubble, attribute: NSLayoutConstraint.Attribute.centerX, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerX, multiplier: 1, constant: 0)) + container.addConstraint(NSLayoutConstraint(item: audioBubble, attribute: NSLayoutConstraint.Attribute.centerY, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerY, multiplier: 1, constant: 0)) + + } + + func showFileBubble() { + let fileBubble = CometChatFileBubble() + fileBubble.set(controller: self) + fileBubble.set(title: "File") + fileBubble.set(subTitle: "Resume") + fileBubble.set(cornerRadius: CometChatCornerStyle(cornerRadius: 10.0)) + fileBubble.set(backgroundColor: CometChatTheme.palatte.secondary) + fileBubble.set(fileUrl: fileUrl) + container.addSubview(fileBubble) + container.addConstraint(NSLayoutConstraint(item: fileBubble, attribute: NSLayoutConstraint.Attribute.centerX, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerX, multiplier: 1, constant: 0)) + container.addConstraint(NSLayoutConstraint(item: fileBubble, attribute: NSLayoutConstraint.Attribute.centerY, relatedBy: NSLayoutConstraint.Relation.equal, toItem: container, attribute: NSLayoutConstraint.Attribute.centerY, multiplier: 1, constant: 0)) + } + + @IBAction func didBackButtonPressed(_ sender: UIButton) { + self.dismiss(animated: true) + } + +} + diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Bubbles/BubblesComponent.xib b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Bubbles/BubblesComponent.xib new file mode 100644 index 00000000..c8642bdf --- /dev/null +++ b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/Bubbles/BubblesComponent.xib @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/MessageReceipt/MessageReceiptModification.swift b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/MessageReceipt/MessageReceiptModification.swift index 58031bb6..232dbda9 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/MessageReceipt/MessageReceiptModification.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/MessageReceipt/MessageReceiptModification.swift @@ -16,13 +16,15 @@ class MessageReceiptModification: UIViewController { @IBOutlet weak var receiptTableView: UITableView! //MARK: VARIABLES - var textMessage = TextMessage(receiverUid: "superhero", text: "Good Morning", receiverType: .user) var identifier = "MessageReceiptCell" func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } + } //MARK: LIFE CYCLE diff --git a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/StatusIndicator/StatusIndicatorModification.swift b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/StatusIndicator/StatusIndicatorModification.swift index aee6c17a..1605e0b5 100644 --- a/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/StatusIndicator/StatusIndicatorModification.swift +++ b/CometChatSwift/CometChatSwift/Components/Shared/SecondaryComponent/StatusIndicator/StatusIndicatorModification.swift @@ -17,9 +17,11 @@ class StatusIndicatorModification: UIViewController { @IBOutlet weak var status: UISegmentedControl! func setupView() { - let blurredView = blurView(view: self.view) - view.addSubview(blurredView) - view.sendSubviewToBack(blurredView) + DispatchQueue.main.async { + let blurredView = self.blurView(view: self.view) + self.view.addSubview(blurredView) + self.view.sendSubviewToBack(blurredView) + } } //MARK: LIFE CYCLE diff --git a/CometChatSwift/CometChatSwift/Controllers/Cells/MessageReceiptCell.swift b/CometChatSwift/CometChatSwift/Controllers/Cells/MessageReceiptCell.swift index 69c1f8fb..1d07190b 100644 --- a/CometChatSwift/CometChatSwift/Controllers/Cells/MessageReceiptCell.swift +++ b/CometChatSwift/CometChatSwift/Controllers/Cells/MessageReceiptCell.swift @@ -30,43 +30,28 @@ class MessageReceiptCell: UITableViewCell { didSet { switch index { case 0: - textMessage.sentAt = 0 - textMessage.deliveredAt = 0.0 - textMessage.readAt = 0.0 - textMessage.metaData = ["error": false] messageReceipt.text = "Progress State" + messageReceiptImage.set(receipt: .inProgress) case 1: - textMessage.sentAt = 1657543565 - textMessage.deliveredAt = 0.0 - textMessage.readAt = 0.0 - textMessage.metaData = ["error": false] messageReceipt.text = "Sent Receipt" - + messageReceiptImage.set(receipt: .sent) case 2: - textMessage.sentAt = 1657543565 - textMessage.deliveredAt = 1657543577.0 - textMessage.readAt = 0.0 - textMessage.metaData = ["error": false] messageReceipt.text = "Deliver Receipt" - + messageReceiptImage.set(receipt: .delivered) case 3: - textMessage.sentAt = 1657543565 - textMessage.deliveredAt = 1657543577.0 - textMessage.readAt = 1657543577.0 - textMessage.metaData = ["error": false] messageReceipt.text = "Read Receipt" - + messageReceiptImage.set(receipt: .read) case 4: - textMessage.metaData = ["error": true] messageReceipt.text = "Error State" + messageReceiptImage.set(receipt: .failed) default: break } - messageReceiptImage.set(receipt: MessageReceiptUtils.get(receiptStatus: textMessage)) + } } } diff --git a/CometChatSwift/CometChatSwift/Controllers/Cells/UIComponentsCell.swift b/CometChatSwift/CometChatSwift/Controllers/Cells/UIComponentsCell.swift index c541cad9..c8d5c24c 100755 --- a/CometChatSwift/CometChatSwift/Controllers/Cells/UIComponentsCell.swift +++ b/CometChatSwift/CometChatSwift/Controllers/Cells/UIComponentsCell.swift @@ -36,13 +36,18 @@ class UIComponentsCell: UITableViewCell { } - func setUpCell(customData: [ModuleComponentModel], indexPath : IndexPath ){ + func setUpCell(customData: [ModuleComponentModel], indexPath : IndexPath ) { setUpComponentsUI(isFirst: indexPath.row == 0, isLast: indexPath.row == (customData.count - 1)) - self.componentName.text = customData[indexPath.row].heading - self.componentDescription.text = customData[indexPath.row].description + self.componentName.text = customData[indexPath.row].heading + self.componentDescription.text = customData[indexPath.row].description + if UIImage(systemName: customData[indexPath.row].avatar) == nil { + self.avatar.image = UIImage(named: customData[indexPath.row].avatar) + } else { self.avatar.image = UIImage(systemName: customData[indexPath.row].avatar) - } + + + } func setUpComponentsUI(isFirst: Bool, isLast: Bool){ diff --git a/CometChatSwift/CometChatSwift/Controllers/ComponentList.swift b/CometChatSwift/CometChatSwift/Controllers/ComponentList.swift index f47f3ee0..a3f832d5 100755 --- a/CometChatSwift/CometChatSwift/Controllers/ComponentList.swift +++ b/CometChatSwift/CometChatSwift/Controllers/ComponentList.swift @@ -15,18 +15,13 @@ protocol LaunchDelegate { func launchListItemForConversation() /// Calls - func launchCallHistoryWithDetails() - func launchCallHistory() - func launchCallDetails() - func launchOutgoingCall() - func launchIncomingCall() - func launchOngoingCall() + func launchCallButtonComponent() - ///Users func launchUsersWithMessages() func launchUsers() func launchListItemForUser() + func launchDetailsForUser() ///Groups func launchGroupsWithMessages() @@ -38,6 +33,7 @@ protocol LaunchDelegate { func launchAddMembers() func launchBannedMembers() func launchTransferOwnership() + func launchDetailsForGroup() ///Messages func launchMessages() @@ -46,23 +42,24 @@ protocol LaunchDelegate { func launchMessageComposer() ///Shared - ///Primary Components + ///Resources func launchSoundManagerComponent() func launchThemeComponent() func launchLocalizeComponent() - ///SDK Derived Components - func launchListItem() - - ///Secondary Componensts + + ///View Componensts func launchAvatarComponent() func launchBadgeCountComponent() func launchStatusIndicatorComponent() func launchMessageReceiptComponent() + func launchTextBubbleComponent() + func launchImageBubbleComponent() + func launchVideoBubbleComponent() + func launchAudioBubbleComponent() + func launchFileBubbleComponent() + func launchListItem() - ///Detail - func launchDetailsForUser() - func launchDetailsForGroup() } class ComponentList: UIViewController { @@ -195,13 +192,9 @@ extension ComponentList: UITableViewDataSource, UITableViewDelegate { if moduleType == .shared { switch section { case 0: - lable.text = "Primary" + lable.text = "Resources" case 1: - lable.text = "SDK Derived" - case 2: - lable.text = "Secondary" - case 3: - lable.text = "Details" + lable.text = "Views" default: break } @@ -257,6 +250,8 @@ extension ComponentList { ComponentList.launchDelegate?.launchUsers() case (0,2): ComponentList.launchDelegate?.launchListItemForUser() + case (0,3): + ComponentList.launchDelegate?.launchDetailsForUser() case (_, _): break } @@ -281,6 +276,9 @@ extension ComponentList { ComponentList.launchDelegate?.launchBannedMembers() case (0,8): ComponentList.launchDelegate?.launchTransferOwnership() + case (0,9): + ComponentList.launchDelegate?.launchDetailsForGroup() + case (_, _): break } @@ -295,20 +293,27 @@ extension ComponentList { ComponentList.launchDelegate?.launchLocalizeComponent() case (1,0): - ComponentList.launchDelegate?.launchListItem() - case (2,0): ComponentList.launchDelegate?.launchAvatarComponent() - case (2, 1): + case (1, 1): ComponentList.launchDelegate?.launchBadgeCountComponent() - case (2,2): + case (1,2): ComponentList.launchDelegate?.launchStatusIndicatorComponent() - case (2,3): + case (1,3): ComponentList.launchDelegate?.launchMessageReceiptComponent() + case (1,4): + ComponentList.launchDelegate?.launchTextBubbleComponent() + case (1,5): + ComponentList.launchDelegate?.launchImageBubbleComponent() + case (1,6): + ComponentList.launchDelegate?.launchVideoBubbleComponent() + case (1,7): + ComponentList.launchDelegate?.launchAudioBubbleComponent() + case (1,8): + ComponentList.launchDelegate?.launchFileBubbleComponent() - case (3,0): - ComponentList.launchDelegate?.launchDetailsForUser() - case (3,1): - ComponentList.launchDelegate?.launchDetailsForGroup() + case (1,9): + ComponentList.launchDelegate?.launchListItem() + case (_, _): break @@ -317,17 +322,7 @@ extension ComponentList { case .calls: switch (section, rowIndex) { case (0,0): - ComponentList.launchDelegate?.launchCallHistoryWithDetails() - case (0,1): - ComponentList.launchDelegate?.launchCallHistory() - case (0,2): - ComponentList.launchDelegate?.launchCallDetails() - case (0,3): - ComponentList.launchDelegate?.launchOutgoingCall() - case (0,4): - ComponentList.launchDelegate?.launchIncomingCall() - case (0,5): - ComponentList.launchDelegate?.launchOngoingCall() + ComponentList.launchDelegate?.launchCallButtonComponent() case (_, _): break } diff --git a/CometChatSwift/CometChatSwift/Controllers/Home + LaunchDelegate.swift b/CometChatSwift/CometChatSwift/Controllers/Home + LaunchDelegate.swift index d246353e..5a36a462 100644 --- a/CometChatSwift/CometChatSwift/Controllers/Home + LaunchDelegate.swift +++ b/CometChatSwift/CometChatSwift/Controllers/Home + LaunchDelegate.swift @@ -12,7 +12,6 @@ import CometChatUIKit import UIKit extension Home : LaunchDelegate { - ///Chats func launchConversationsWithMessages() { let conversationsWithMessages = CometChatConversationsWithMessages() @@ -31,60 +30,9 @@ extension Home : LaunchDelegate { } ///Calls - - func launchCallHistoryWithDetails() { - let callHistoryWithDetails = CometChatCallHistoryWithDetails() - self.presentViewController(viewController: callHistoryWithDetails, isNavigationController: true) - - } - func launchCallHistory() { - let cometChatCallsHistory = CometChatCallsHistory() - presentViewController(viewController: cometChatCallsHistory, isNavigationController: true) - } - - func launchCallDetails() { - CometChat.getUser(UID: "superhero2", onSuccess: { user in - DispatchQueue.main.async { - let callDetails = CometChatCallDetails() - callDetails.set(user: user) - self.presentViewController(viewController: callDetails, isNavigationController: true) - } - }, onError: { error in - self.showAlert(title: "Error", msg: error?.errorDescription ?? "") - }) - } - - func launchOutgoingCall() { - let outgoingCall = CometChatOutgoingCall() - let user = User(uid: "superhero4", name: "Wolverine") - user.avatar = "https://data-us.cometchat.io/assets/images/avatars/wolverine.png" - outgoingCall.set(user: user) - outgoingCall.setOnCancelClick { call, controller in - controller?.dismiss(animated: true) - } - presentViewController(viewController: outgoingCall, isNavigationController: false) - } - - func launchIncomingCall() { - let incomingCall = CometChatIncomingCall() - let user = User(uid: "superhero4", name: "Wolverine") - user.avatar = "https://data-us.cometchat.io/assets/images/avatars/wolverine.png" - incomingCall.set(user: user) - incomingCall.setOnCancelClick { call, controller in - controller?.dismiss(animated: true) - CometChatSoundManager().pause() - } - incomingCall.setOnAcceptClick { call, controller in - controller?.dismiss(animated: true) - CometChatSoundManager().pause() - } - presentViewController(viewController: incomingCall, isNavigationController: false) - } - - func launchOngoingCall() { - let ongoingCall = CometChatOngoingCall() - ongoingCall.set(sessionId: "abc") - presentViewController(viewController: ongoingCall, isNavigationController: false) + func launchCallButtonComponent() { + let callButtons = CallButtonsComponent() + presentViewController(viewController: callButtons, isNavigationController: false) } ///Users @@ -104,6 +52,18 @@ extension Home : LaunchDelegate { self.presentViewController(viewController: listItem, isNavigationController: false) } + func launchDetailsForUser() { + CometChat.getUser(UID: "superhero1", onSuccess: { user in + DispatchQueue.main.async { + let detailsForUser = CometChatDetails() + detailsForUser.set(user: user) + self.presentViewController(viewController: detailsForUser, isNavigationController: true) + } + }, onError: { error in + self.showAlert(title: "Error", msg: error?.errorDescription ?? "") + }) + } + ///Groups func launchGroupsWithMessages() { let groupsWithMessages = CometChatGroupsWithMessages() @@ -184,6 +144,18 @@ extension Home : LaunchDelegate { }) } + func launchDetailsForGroup() { + CometChat.getGroup(GUID: "supergroup", onSuccess: { group in + DispatchQueue.main.async { + let detailsForGroup = CometChatDetails() + detailsForGroup.set(group: group) + self.presentViewController(viewController: detailsForGroup, isNavigationController: true) + } + }, onError: { error in + self.showAlert(title: "Error", msg: error?.errorDescription ?? "") + }) + } + ///Messages func launchMessages() { CometChat.getGroup(GUID: "supergroup", onSuccess: { group in @@ -254,28 +226,34 @@ extension Home : LaunchDelegate { let messageReceipt = MessageReceiptModification() self.presentViewController(viewController: messageReceipt, isNavigationController: false) } + + func launchTextBubbleComponent() { + let textBubble = BubblesComponent() + textBubble.bubbleType = .textBubble + presentViewController(viewController: textBubble, isNavigationController: false) + } - func launchDetailsForUser() { - CometChat.getUser(UID: "superhero1", onSuccess: { user in - DispatchQueue.main.async { - let detailsForUser = CometChatDetails() - detailsForUser.set(user: user) - self.presentViewController(viewController: detailsForUser, isNavigationController: true) - } - }, onError: { error in - self.showAlert(title: "Error", msg: error?.errorDescription ?? "") - }) + func launchImageBubbleComponent() { + let imageBubble = BubblesComponent() + imageBubble.bubbleType = .imageBubble + presentViewController(viewController: imageBubble, isNavigationController: false) } - - func launchDetailsForGroup() { - CometChat.getGroup(GUID: "supergroup", onSuccess: { group in - DispatchQueue.main.async { - let detailsForGroup = CometChatDetails() - detailsForGroup.set(group: group) - self.presentViewController(viewController: detailsForGroup, isNavigationController: true) - } - }, onError: { error in - self.showAlert(title: "Error", msg: error?.errorDescription ?? "") - }) + + func launchVideoBubbleComponent() { + let videoBubble = BubblesComponent() + videoBubble.bubbleType = .videoBubble + presentViewController(viewController: videoBubble, isNavigationController: false) + } + + func launchAudioBubbleComponent() { + let audioBubble = BubblesComponent() + audioBubble.bubbleType = .audioBubble + presentViewController(viewController: audioBubble, isNavigationController: false) + } + + func launchFileBubbleComponent() { + let fileBubble = BubblesComponent() + fileBubble.bubbleType = .fileBubble + presentViewController(viewController: fileBubble, isNavigationController: false) } } diff --git a/CometChatSwift/CometChatSwift/Controllers/Home.swift b/CometChatSwift/CometChatSwift/Controllers/Home.swift index afe5a2c1..3f1ca0f7 100755 --- a/CometChatSwift/CometChatSwift/Controllers/Home.swift +++ b/CometChatSwift/CometChatSwift/Controllers/Home.swift @@ -160,7 +160,6 @@ extension Home { let ok = UIAlertAction(title: "OK", style: .default, handler: { (action) -> Void in if let currentUser = CometChat.getLoggedInUser() { CometChatUIKit.logout(user: currentUser, result: { (result) in - switch result { case .success(_): DispatchQueue.main.async { diff --git a/CometChatSwift/CometChatSwift/Helpers/CustomJson/ModulesJson.swift b/CometChatSwift/CometChatSwift/Helpers/CustomJson/ModulesJson.swift index 7aba8765..03f12e71 100644 --- a/CometChatSwift/CometChatSwift/Helpers/CustomJson/ModulesJson.swift +++ b/CometChatSwift/CometChatSwift/Helpers/CustomJson/ModulesJson.swift @@ -16,52 +16,27 @@ public class ModulesJson { { "heading": "Conversations With Messages", "description": "CometChatConversationsWithMessages is an independent component used to set up a screen that shows the recent conversations and allows you to send a message to the user or group from the list", - "avatar": "sidebar.leading" + "avatar": "conversations-with-messages" }, { "heading": "Conversations", "description": "CometChatConversations is an independent component used to set up a screen that shows the recent conversations alone", - "avatar": "menubar.rectangle" + "avatar": "conversations" }, { "heading": "List Item", "description": "CometListItem is a reusable component which is used to display the conversation list item in the conversation list.", - "avatar": "person.text.rectangle" + "avatar": "menu" } ] ], "calls": [ [ - { - "heading": "CallHistoryWithDetails", - "description": "CometChatCallsHistory is an independent component used to set up a screen that shows the recent conversations and allows you to send a message to the user or group from the list", - "avatar": "sidebar.leading" - }, - { - "heading": "Calls History", - "description": "CometChatCallsHistory is an independent component used to set up a screen that shows the recent conversations and allows you to send a message to the user or group from the list", - "avatar": "list.bullet.rectangle.portrait" - }, - { - "heading": "Call Details", - "description": "CallDetails is an independent component used to set up a screen that shows the recent conversations and allows you to check the details of a particular call message.", - "avatar": "person.text.rectangle" - }, - { - "heading": "Outgoing Call", - "description": "CometChatOutgoingCall is an independent component used to set up a screen that shows the recent conversations and allows you to send a message to the user or group from the list", - "avatar": "phone.arrow.up.right" - }, - { - "heading": "Incoming Call", - "description": "CometChatIncomingCall is an independent component used to set up a screen that shows the recent conversations and allows you to send a message to the user or group from the list", - "avatar": "phone.arrow.down.left" - }, - { - "heading": "Ongoing Call", - "description": "CometChatOningCall is an independent component used to set up a screen that shows the recent conversations and allows you to send a message to the user or group from the list", - "avatar": "phone.and.waveform" - } + { + "heading": "Call Button", + "description": "CometChatCallButton is an independent component that will allows you to make a call.", + "avatar": "person.text.rectangle" + } ] ], "message": [ @@ -69,7 +44,7 @@ public class ModulesJson { { "heading": "Messages", "description": "The CometChatMessages component is an independent component that is used to handle messages for users and groups.", - "avatar": "sidebar.leading" + "avatar": "message-text-icon" }, { "heading": "Message Header", @@ -79,12 +54,12 @@ public class ModulesJson { { "heading": "Message List", "description": "CometChatMessageList displays a list of messages and handles real-time operations.", - "avatar": "list.bullet.below.rectangle" + "avatar": "message-list" }, { "heading": "MessageComposer", "description": "CometChatComposer is an independent and a critical component that allows users to compose and send various types of messages such as text, image, video and custom messages.", - "avatar": "person.text.rectangle" + "avatar": "compose" } ] ], @@ -93,18 +68,23 @@ public class ModulesJson { { "heading": "Users With Messages", "description": "CometChatUsersWithMessages is an independent component used to set up a screen that shows the list of users available in your app and gives you the ability to search for a specific user and to start conversation.", - "avatar": "sidebar.leading" + "avatar": "users-chat" }, { "heading": "Users", "description": "CometChatUsers is an independent component used to set up a screen that displays a scrollable list of users available in your app and gives you the ability to search for a specific user.", - "avatar": "menubar.rectangle" + "avatar": "user-solid" }, { "heading": "List Item", "description": "CometChatListItem is used to display the user list item in a user list. It houses the Avatar, Status indicator and Title", - "avatar": "person.text.rectangle" - } + "avatar": "menu" + }, + { + "heading": "CometChatDetails (User)", + "description": "This component is used to display the detailed information of an user. To learn more about this component tap here.", + "avatar": "account" + } ] ], "groups": [ @@ -112,48 +92,53 @@ public class ModulesJson { { "heading": "Groups With Messages", "description": "CometChatGroupsWithMessages is an independent component used to set up a screen that shows the list of groups available in your app and gives you the ability to search for a specific group and to start a conversation.", - "avatar": "sidebar.leading" + "avatar": "chat-group" }, { "heading": "Groups", "description": "CometChatGroups is an independent component used to set up a screen that displays the list of groups available in your app and gives you the ability to search for a specific group", - "avatar": "menubar.rectangle" + "avatar": "group-chat" }, { "heading": "List Item", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "person.text.rectangle" + "description": "CometChatListItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", + "avatar": "menu" }, { "heading": "Create Group", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "plus.square" + "description": "This component is used to create a new group. Groups can of three types public , private or password protected. To learn more about this component tap here.", + "avatar": "create-group-button" }, { "heading": "Join Protected Group", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "lock.shield" + "description": "This component is used to join password protected group. To learn more about this component tap here.", + "avatar": "shield-with-lock" }, { - "heading": "View Members", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "person.fill.viewfinder" + "heading": "Group Members", + "description": "This component is used to view members in a group. To learn more about this component tap here.", + "avatar": "group-chat" }, { "heading": "Add Members", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "person.badge.plus" + "description": "This component is used to add members in a group. To learn more about this component tap here.", + "avatar": "user-plus" }, { "heading": "Banned Members", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "person.badge.key" + "description": "This component is used to display Banned members of a group. To learn more about this component tap here.", + "avatar": "ban-user" }, { "heading": "Transfer Ownership", - "description": "CometChatDataItem is used to display the group list item in the group list. It houses the Avatar, Status indicator, Title and Subtitle.", - "avatar": "person.and.arrow.left.and.arrow.right" - } + "description": "This component is used to transer ownership of group from one user to another. To learn more about this component tap here.", + "avatar": "transfer-ownership" + }, + { + "heading": "CometChatDetails (Group)", + "description": "This component is used to display the detailed information of a group. To learn more about this component tap here.", + "avatar": "account" + } ] ], "shared": [ @@ -166,7 +151,7 @@ public class ModulesJson { { "heading": "Theme", "description": "CometChatTheme is a style applied to every component and every view in the activity or component in the UI Kit", - "avatar": "paintpalette" + "avatar": "theme" }, { "heading": "Localize", @@ -174,46 +159,63 @@ public class ModulesJson { "avatar": "textformat.alt" } ], - [ - { - "heading": "List Item", - "description": "CometChatListItem is a reusable component which is used across multiple components in different variations such as Users, Groups, Conversations and many more as a List Item.", - "avatar": "person.text.rectangle" - } - ], [ { "heading": "Avatar", "description": "CometChatAvatar component displays an image or user/group avatar with fallback to the first two letters of the user name/group name", - "avatar": "photo" + "avatar": "person" }, { "heading": "Badge Count", "description": "CometChatBadge is a custom component which is used to display the unread message count. It can be used in places like ConversationListItem, etc.", - "avatar": "app.badge" + "avatar": "rectangle.dashed.badge.record" }, { "heading": "Status Indicator", "description": "StatusIndicator component indicates whether a user is online or offline.", - "avatar": "record.circle" + "avatar": "person.crop.circle.badge.questionmark.fill" }, { "heading": "Message Receipt", "description": "CometChatReceipt component renders the receipts such as sending, sent, delivered, read and error state indicator of a message.", - "avatar": "checkmark.bubble" - } - ], - [ + "avatar": "sidebar.left" + }, + { - "heading": "CometChatDetails (User)", - "description": "CometChatConversationListItem is a reusable component which is used to display the conversation list item in the conversation list.", - "avatar": "person.circle" + "heading": "Text Bubble", + "description": "CometChatTextBubble displays a text message. To learn more about this component tap here.", + "avatar": "message-text-icon" }, + { - "heading": "CometChatDetails (Group)", - "description": "CometChatDataItem is a reusable component which is used across multiple components in different variations such as User List, Group List as a List Item.", - "avatar": "person.2.circle" - } + "heading": "Image Bubble", + "description": "CometChatImageBubble displays a media message containing an image. To learn more about this component tap here.", + "avatar": "image" + }, + + { + "heading": "Video Bubble", + "description": "CometChatVideoBubble displays a media message containing a video. To learn more about this component tap here.", + "avatar": "video-icon" + }, + + { + "heading": "Audio Bubble", + "description": "CometChatAudioBubble displays a media message containing an audio. To learn more about this component tap here.", + "avatar": "volume-icon" + }, + + { + "heading": "File Bubble", + "description": "CometChatFileBubble displays a media message containing a file. To learn more about this component tap here.", + "avatar": "folder-icon" + }, + { + "heading": "List Item", + "description": "CometChatListItem is a reusable component which is used across multiple components in different variations such as Users, Groups, Conversations and many more as a List Item.", + "avatar": "menu" + } + ] ] } diff --git a/License.md b/License.md index 3f9bab8e..c3d3256c 100755 --- a/License.md +++ b/License.md @@ -10,8 +10,6 @@ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/README.md b/README.md index 341e94c3..1b83490e 100755 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ - + @@ -32,44 +32,23 @@ CometChat Kitchen Sink Sample App (built using **CometChat UIKit**) is a fully f ___ -## Prerequisites +## Prerequisites :star: Before you begin, ensure you have met the following requirements: -- You have installed the latest version of Xcode. (Above Xcode 12 Recommended) +✅   macOS -- iOS Swift Chat App works for the iOS devices from iOS 11 and above. +✅   Xcode -NOTE: Please install the latest pod version on your Mac to avoid integration issues +✅   iOS 13.0 and later -```bash -Please follow the below steps: +✅   Swift 4.0+ -sudo gem update cocoapods --pre -pod update -clean -build - -``` ___ ## Installing iOS Swift Chat App -1. Simply clone the project from [ios-swift-chat-app](https://github.com/cometchat-pro-samples/ios-chat-ui-kit-app/archive/master.zip) repository. After cloning the repository: - -2. Navigate to project's folder and use below command to install the require dependancies. - - ``` - $ pod install - ``` - -3. If you're facing any issues while installing pods, then kindly use the below command to install dependancies. - - ``` - pod install --repo-update - ``` - -4. Build and run the Sample App. +1. Simply clone the project from [ios-swift-chat-app](https://github.com/cometchat-pro-samples/ios-chat-ui-kit-app/archive/master.zip) repository. ___ ## Running the sample app @@ -92,10 +71,75 @@ To Run to sample app you have to do the following changes by Adding **AppID**, * ## Add UI Kit to your project -Learn more about how to integrate [UI Kit](https://github.com/cometchat-pro/ios-chat-uikit) inside your app. +## 1. Setup :wrench: + +To install iOS Chat UIKit, you need to first register on CometChat Dashboard. [Click here to sign up](https://app.cometchat.com/login). + +### i. Get your Application Keys :key: +* Create a new app +* Head over to the Quick Start or API & Auth Keys section and note the `App ID`, `Auth Key`, and `Region`. --- +### ii. You can install UIKit for iOS through Swift Package Manager. + +* Go to your Swift Package Manager's File tab and select Add Packages. + +* Add CometChatProUIKit into your Package Repository as below: + * https://github.com/cometchat-pro/ios-swift-chat-ui-kit.git + +* To add the package, select Version Rules, enter Up to Exact Version, [3.0.914-pluto.beta.2.1](https://github.com/cometchat-pro/ios-swift-chat-ui-kit/tree/pluto), and click Next + +___ + +## 2. Calling Functionality + +If you want calling functionality inside your application then you need to install calling SDK additionally inside your project. You can install CometChatProCalls Calling SDK for iOS through Swift Package Manager. + +* Go to your Swift Package Manager's File tab and select Add Packages + +* Add CometChatProCalls into your Package Repository as below: + + * https://github.com/cometchat-pro/ios-calls-sdk.git + +* To add the package, select Version Rules, enter Up to Exact Version, 3.0.0, and click Next. + +___ + +## 3. Configure CometChat inside your app + +### i. Initialize CometChat :star2: + +The `init()` method initializes the settings required for CometChat. We suggest calling the `init()` method on app startup, preferably in the `didFinishLaunchingWithOptions()` method of the Application class. + +```swift +import CometChatPro + +class AppDelegate: UIResponder, UIApplicationDelegate{ + + var window: UIWindow? + let appId: String = "ENTER APP ID" + let region: String = "ENTER REGION CODE" + +func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + + let mySettings = AppSettings.AppSettingsBuilder().subscribePresenceForAllUsers().setRegion(region: region).build() + CometChat(appId: appId ,appSettings: mySettings,onSuccess: { (isSuccess) in + + print("CometChat Pro SDK intialise successfully.") + + }) { (error) in + print("CometChat Pro SDK failed intialise with error: \(error.errorDescription)") + } + return true + } +} +``` +**Note :** +Make sure you replace the APP_ID with your CometChat `appId` and `region` with your app region in the above code. + +___ + # Troubleshooting - To read the full dcoumentation on UI Kit integration visit our [Documentation](https://prodocs.cometchat.com/docs/ios-ui-kit) . diff --git a/SECURITY.md b/SECURITY.md index ab84dcd4..c119e786 100755 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,7 +12,6 @@ keeping CometChat Pro and its users safe by responsibly disclosing any security vulnerability. Rest assured we will make every effort to acknowledge your contributions. - ## Reporting a vulnerability To report any security related issues, please communicate with the CometChat Pro security team by sending an email to security@cometchat.com diff --git a/SUPPORT.md b/SUPPORT.md index bf121b3a..6749dc7a 100755 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -4,4 +4,3 @@ The quickest way to get support is to contact us via your CometChat Pro Dashboar -