Nosmai  Effects Nosmai  Moderation Nosmai Try-ons coming soon
Docs menu iOS
How-to guide

Apply a beauty filter in iOS

Add adjustable skin smoothing, whitening, sharpening, and teeth whitening to an initialized Nosmai iOS camera.

Platform iOS SDK version 3.0.4 Updated Aug 22, 2026 Time 6 min

Prerequisites

  • A working iOS quickstart
  • A ready camera preview and valid beauty capability

Apply a subtle preset

Use the shared effects engine after the preview is ready:

NosmaiEffectsEngine *effects = [NosmaiCore shared].effects;

[effects applySkinSmoothing:0.35f];
[effects applySkinWhitening:0.10f];
[effects applySharpening:0.15f];
[effects applyTeethWhitening:0.20f];

Parameter ranges

MethodRangeOff valueVisible result
applySkinSmoothing:0.0 to 1.00.0Softens skin detail
applySkinWhitening:0.0 to 1.00.0Brightens skin tone
applySharpening:0.0 to 1.00.0Restores edge detail
applyTeethWhitening:0.0 to 1.00.0Brightens detected teeth

Clamp slider values before calling the SDK. Apply changes on the main thread that owns the UI control.

Reset beauty

[[NosmaiCore shared].effects removeBuiltInFilters];

Use removeAllBeautyEffects when the product also needs to clear makeup, face shape, and eye color.

Verify it worked

Move smoothing between 0.0 and 0.4 while a face is visible. The preview should update without restarting the camera.

Common errors

SymptomCauseFix
No visible changePreview is not ready or no face is trackedApply after camera readiness and test with a well-lit face
A packaged AR effect disappearsBuilt-in beauty conflicts with the active AR slotFollow the package replacement rules and apply the intended mode last
Result looks unnaturalValues are too strongStart below 0.4 and tune on target devices

Next steps

References

Was this page helpful?

Your response helps us prioritize documentation improvements.

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved