{"id":31474629,"url":"https://github.com/tencent-rtc/tuikit_ios_swiftui","last_synced_at":"2025-10-01T22:47:20.913Z","repository":{"id":317161506,"uuid":"1062379491","full_name":"Tencent-RTC/TUIKit_iOS_SwiftUI","owner":"Tencent-RTC","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-29T07:57:55.000Z","size":18204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-29T09:28:39.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tencent-RTC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T07:19:42.000Z","updated_at":"2025-09-29T07:57:58.000Z","dependencies_parsed_at":"2025-09-30T00:01:46.287Z","dependency_job_id":null,"html_url":"https://github.com/Tencent-RTC/TUIKit_iOS_SwiftUI","commit_stats":null,"previous_names":["tencent-rtc/tuikit_ios_swiftui"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Tencent-RTC/TUIKit_iOS_SwiftUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent-RTC%2FTUIKit_iOS_SwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent-RTC%2FTUIKit_iOS_SwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent-RTC%2FTUIKit_iOS_SwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent-RTC%2FTUIKit_iOS_SwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tencent-RTC","download_url":"https://codeload.github.com/Tencent-RTC/TUIKit_iOS_SwiftUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tencent-RTC%2FTUIKit_iOS_SwiftUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277926255,"owners_count":25900535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-01T02:00:09.286Z","response_time":88,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-01T22:47:19.155Z","updated_at":"2025-10-01T22:47:20.905Z","avatar_url":"https://github.com/Tencent-RTC.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TUIKit iOS SwiftUI\n\nThis document introduces **how to quickly run the TUIKit SwiftUI demo.**\n\n\u003e Please Attention: \n\u003e In respect for the copyright of the emoji design, This project does not include the cutouts of large emoji elements. Please replace them with your own designed or copyrighted emoji packs before the official launch for commercial use. The default small yellow face emoji pack is copyrighted by Tencent Cloud and can be authorized for a fee. If you wish to obtain authorization, please [Contact Us](https://trtc.io/contact).\n\u003e \n\u003e \u003cimg src=\"https://qcloudimg.tencent-cloud.cn/image/document/6438e8feb7bba909511e0d798dfaf91d.png\" width=\"300px\" /\u003e\n\u003e \n\n\n### Step 1. Create an App\n1. Log in to the [Chat Console](https://console.trtc.io/). If you already have an app, record its SDKAppID.\n2. On the **Application List** page, click **Create Application**.\n3. In the **Create Application** dialog box, enter the app information and click **Confirm**.\n\u003e After the app is created, an app ID (SDKAppID) will be automatically generated, which should be noted down.\n\n### Step 2: Obtain Key Information\n\n1. Click **Application Configuration** in the row of the target app to enter the app details page.\n2. Click **View Key** and copy and save the key information.\n\u003e Please store the key information properly to prevent leakage.\n\n### Step 3: Download and Configure the Demo Source Code\n\n1. Clone this TUIKit_iOS_SwiftUI project.\n2. Open the project in the terminal directory and find the `GenerateTestUserSig.swift` file.\n3. Set relevant parameters in the `GenerateTestUserSig.swift` file:\n\n- SDKAPPID: set it to the SDKAppID obtained in [Step 1](#step1).\n- SECRETKEY: enter the key obtained in [Step 2](#step2).\n\n\u003cimg src=\"https://sdk-im-1252463788.cos.ap-hongkong.myqcloud.com/tools/resource/chat/SDKAppID_SecretKey_SwiftUI.png\" width=\"800\"/\u003e\n\n\n\u003e In this document, the method to obtain UserSig is to configure a SECRETKEY in the client code. In this method, the SECRETKEY is vulnerable to decompilation and reverse engineering. Once your SECRETKEY is leaked, attackers can steal your Tencent Cloud traffic. Therefore, **this method is only suitable for locally running a demo project and feature debugging**.\n\u003e The correct `UserSig` distribution method is to integrate the calculation code of `UserSig` into your server and provide an application-oriented API. When `UserSig` is needed, your app can send a request to the business server for a dynamic `UserSig`. For more information, please see [How do I calculate UserSig on the server?](https://trtc.io/document/34385?product=chat\u0026menulabel=serverapis).\n\n### Step 4: Compile and Run the Demo\n1. Run the following command on the terminal to check the pod version:\n```objectivec\npod --version\n```\nIf the system indicates that no pod exists or that the pod version is earlier than 1.7.5, run the following commands to install the latest pod.\n```\n// Change sources.\ngem sources --remove https://rubygems.org/\ngem sources --add https://gems.ruby-china.com/\n// Install pods.\nsudo gem install cocoapods -n /usr/local/bin\n// If multiple versions of Xcode are installed, run the following command to choose an Xcode version (usually the latest one):\nsudo xcode-select -switch /Applications/Xcode.app/Contents/Developer\n// Update the local pod library.\npod setup\n```\n2. Run the following commands on the terminal to load the library.\n```\ncd chat/demo\npod install\n```\n3. If installation fails, run the following command to update the local CocoaPods repository list:\n```\npod repo update\n```\n4. Execute the following command to update the Pod version of the component library:\n```\npod update\n```\n5. Go to the chat/demo folder and open `ChatDemo.xcworkspace` to compile and run the demo.\n\nWhen you run it successfully, you'll see this UI:\n\n\u003ctable border=\"1\" bordercolor=\"#eeeeee\" style=\"border-collapse: collapse;\"\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" style=\"padding: 5px;\"\u003e\n      \u003cimg src=\"https://sdk-im-1252463788.cos.ap-hongkong.myqcloud.com/tools/resource/chat/TUIKit_iOS_SwiftUI.png\" width=\"300\"/\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftencent-rtc%2Ftuikit_ios_swiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftencent-rtc%2Ftuikit_ios_swiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftencent-rtc%2Ftuikit_ios_swiftui/lists"}