Basic Beauty Panel | Advanced Beauty Panel |
![]() | ![]() |
V-face | Eye Spacing | Nose Slimming | 3D Sticker |
![]() | ![]() | ![]() | ![]() |
TUILiveKit package. Copy the iOS/TEBeautyKit directory into your project at the same level as your Podfile.
TUICore. When detected by TUILiveKit, the advanced beauty panel and video processing are enabled automatically. If not present, the system defaults to Basic Beauty..bundle). These resources are provided separately and must be combined in the same Beauty/ directory within your project.beauty_panel/ directory with the following files (different packages require different JSON files; see the "File Naming and Package Mapping" table at the end of this step):beauty_panel/├── beauty.json├── beauty_template.json├── beauty_template_ios.json├── beauty_image.json├── beauty_shape.json├── beauty_base_shape.json├── beauty_general_shape.json├── beauty_makeup.json├── beauty_body.json├── light_makeup.json├── makeup.json├── motion_2d.json├── motion_3d.json├── motion_gesture.json├── segmentation.json├── lut.json└── panel_icon/ # PNG icons for panel buttons
.bundle) are included with each Tencent Effects SDK package, with contents varying by package. Obtain the appropriate beauty resources as follows:*.bundle directories (actual contents depend on your package; see the table below):(From Tencent Effects SDK package)├── lut.bundle/ # Filter LUT color lookup tables├── 2dMotionRes.bundle/ # 2D animated sticker materials├── 3dMotionRes.bundle/ # 3D animated sticker materials├── makeupMotionRes.bundle/ # Makeup materials├── lightMakeupRes.bundle/ # Light makeup materials└── segmentMotionRes.bundle/ # Portrait segmentation / green screen materials
lut.bundle, while S1_07 contains all bundles listed above. Always check your downloaded contents.beauty_panel/ directory from Part A and all *.bundle directories from Part B into your app's Beauty/ directory. The final structure should be:YourApp/└── Beauty/├── beauty_panel/ # Part A: Panel JSON config + icons│ ├── beauty.json│ ├── beauty_template.json│ ├── beauty_template_ios.json│ ├── beauty_image.json│ ├── beauty_shape.json│ ├── beauty_base_shape.json│ ├── beauty_general_shape.json│ ├── beauty_makeup.json│ ├── beauty_body.json│ ├── light_makeup.json│ ├── makeup.json│ ├── motion_2d.json│ ├── motion_3d.json│ ├── motion_gesture.json│ ├── segmentation.json│ ├── lut.json│ └── panel_icon/ # All PNG icons for the panel├── lut.bundle/ # Part B: Filter LUT color lookup tables├── 2dMotionRes.bundle/ # Part B: 2D animated sticker materials├── 3dMotionRes.bundle/ # Part B: 3D model sticker materials├── makeupMotionRes.bundle/ # Part B: Makeup materials├── lightMakeupRes.bundle/ # Part B: Light makeup materials└── segmentMotionRes.bundle/ # Part B: Portrait segmentation / green screen materials
Beauty/ directory into your Xcode project (recommended placement: same level as AppDelegate.swift). When importing:beauty_panel/*.json and *.bundle/ files are included in Bundle.main and accessible at runtime using Bundle.main.path(forResource:ofType:).Resource | Source | Purpose | Panel Feature |
beauty_panel/*.json | Part A | Panel UI configuration (buttons, sliders, groups) | Overall panel |
beauty_panel/panel_icon/ | Part A | Panel button PNG icons | Overall panel |
lut.bundle/ | Part B | Filter color lookup tables | Filters Tab |
2dMotionRes.bundle/ | Part B | 2D animated stickers / face effects | Stickers Tab |
3dMotionRes.bundle/ | Part B | 3D model stickers | Stickers Tab |
makeupMotionRes.bundle/ | Part B | Full makeup sets (lipstick, eyeshadow, blush, etc.) | Makeup Tab |
lightMakeupRes.bundle/ | Part B | Light makeup materials | Light Makeup Tab |
segmentMotionRes.bundle/ | Part B | Portrait segmentation (green screen, cutout, background blur) | Segmentation Tab |
BeautyLevel. Missing files will result in blank or missing tabs. The table below lists the required panel JSON resources (from Part A) for each package. The corresponding *.bundle materials (from Part B) are provided in your SDK package and should be imported as shown above.Package (BeautyLevel) | Panel JSONs to Import (Full List) |
A1_00 | beauty_template, beauty, lut |
A1_01 | beauty_template, beauty, beauty_image, beauty_base_shape, lut |
A1_02 | beauty_template, beauty, beauty_image, beauty_base_shape, lut, motion_2d |
A1_03 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d |
A1_04 | beauty_template, beauty, beauty_image, beauty_general_shape, lut |
A1_05 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d, segmentation |
A1_06 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d, makeup |
S1_00 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut |
S1_01 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, makeup, light_makeup |
S1_02 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, motion_gesture, makeup, light_makeup |
S1_03 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, makeup, light_makeup, segmentation |
S1_04 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
S1_05 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, makeup, light_makeup, segmentation |
S1_06 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
S1_07 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
*.bundle materials for your selected package are included in Bundle.main.*.bundle files are tied to your purchased Tencent Effects SDK package. Download the package that matches your selected BeautyLevel to avoid missing resources in the panel.YourApp/└── Beauty/├── beauty_panel/ # Panel JSON config + icons│ ├── beauty.json│ ├── beauty_template.json│ ├── beauty_template_ios.json│ ├── beauty_image.json│ ├── beauty_shape.json│ ├── beauty_base_shape.json│ ├── beauty_general_shape.json│ ├── beauty_makeup.json│ ├── beauty_body.json│ ├── light_makeup.json│ ├── makeup.json│ ├── motion_2d.json│ ├── motion_3d.json│ ├── motion_gesture.json│ ├── segmentation.json│ ├── lut.json│ └── panel_icon/ # All PNG icons for the panel├── lut.bundle/ # Filter LUT color lookup tables│ ├── baixi_lf.png│ ├── dongjing_lf.png│ ├── moren_lf.png│ ├── xindong_lf.png│ └── ziran_lf.png├── 2dMotionRes.bundle/ # 2D animated sticker materials├── 3dMotionRes.bundle/ # 3D animated sticker materials├── makeupMotionRes.bundle/ # Makeup materials├── lightMakeupRes.bundle/ # Light makeup materials└── segmentMotionRes.bundle/ # Portrait segmentation / green screen materials
Resource | Purpose | Panel Feature |
beauty_panel/*.json | Panel UI configuration (buttons, sliders, groups) | Overall panel |
beauty_panel/panel_icon/ | Panel button PNG icons | Overall panel |
lut.bundle/ | Filter color lookup tables | Filters Tab |
2dMotionRes.bundle/ | 2D animated stickers / face effects | Stickers Tab |
3dMotionRes.bundle/ | 3D model stickers | Stickers Tab |
makeupMotionRes.bundle/ | Full makeup sets (lipstick, eyeshadow, blush, etc.) | Makeup Tab |
lightMakeupRes.bundle/ | Light makeup materials | Light Makeup Tab |
segmentMotionRes.bundle/ | Portrait segmentation (green screen, cutout, background blur) | Segmentation Tab |
BeautyLevel. Missing files will result in blank or missing tabs. The table below lists the required JSON resources for each package:Package ( BeautyLevel) | Panel JSONs to Import (Full List) |
A1_00 | beauty_template, beauty, lut |
A1_01 | beauty_template, beauty, beauty_image, beauty_base_shape, lut |
A1_02 | beauty_template, beauty, beauty_image, beauty_base_shape, lut, motion_2d |
A1_03 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d |
A1_04 | beauty_template, beauty, beauty_image, beauty_general_shape, lut |
A1_05 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d, segmentation |
A1_06 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d, makeup |
S1_00 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut |
S1_01 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, makeup, light_makeup |
S1_02 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, motion_gesture, makeup, light_makeup |
S1_03 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, makeup, light_makeup, segmentation |
S1_04 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
S1_05 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, makeup, light_makeup, segmentation |
S1_06 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
S1_07 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
*.bundle materials for your package are included in Bundle.main.Podfile to add the following lines, then run pod install:platform :ios, '14.0'target 'YourApp' douse_frameworks!# 1) Tencent Effects SDK (replace subspec with your purchased package, e.g., S1-07)pod 'TEBeautyKit/S1-07',:podspec => 'https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/TEBeautyKit/latest/TEBeautyKit.podspec'# 2) Adapter layer wrapper in the repo (exposes services and extensions to TUICore)pod 'TEBeautyKitWrapper', :path => './TEBeautyKit'end
AppDelegate.application(_:didFinishLaunchingWithOptions:)), call the following API to complete license authentication, TUICore registration, and package/panel setup://// AppDelegate.swift//import UIKitimport TUILiveKit#if canImport(TEBeautyKitWrapper)import TEBeautyKitWrapper#endif@mainclass AppDelegate: UIResponder, UIApplicationDelegate {func application(_ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {#if canImport(TEBeautyKitWrapper)// One line: setTELicense + register TUICore service + select package (default .S1_07)TUIBeautyKit.initialize(licenseUrl: "YOUR_LICENSE_URL",licenseKey: "YOUR_LICENSE_KEY",beautyLevel: .S1_07 // Replace with your purchased package: .A1_00 ... .S1_07) { code, message in// Optional: License validation callbackprint("TEBeauty license check: code=\\(code), msg=\\(message ?? "")")}#endifreturn true}}
BeautyLevel options (corresponding to your purchased Tencent Effects SDK package):A1_00 A1_01 A1_02 A1_03 A1_04 A1_05 A1_06S1_00 S1_01 S1_02 S1_03 S1_04 S1_05 S1_06 S1_07
TEBeautyKitWrapper is included in your Podfile and pod install completed successfully.AppDelegate calls TUIBeautyKit.initialize(...).setTELicense callback code).Bundle.main.licenseUrl and licenseKey are associated with your package, that the selected BeautyLevel matches the license, and that your app's BundleIdentifier matches the BundleId bound to the license.TUIBeautyKit.initialize(licenseUrl:, licenseKey:, beautyLevel:) again with the new package settings.フィードバック