Created
June 26, 2023 13:43
-
-
Save kaszabimre/4deb771da4aaf4e131d139198cb498f7 to your computer and use it in GitHub Desktop.
The setMaskFilter implementation - iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.ui.graphics.NativePaint | |
import org.jetbrains.skia.FilterBlurMode | |
import org.jetbrains.skia.MaskFilter | |
internal actual fun NativePaint.setMaskFilter(blurRadius: Float) { | |
this.maskFilter = MaskFilter.makeBlur(FilterBlurMode.NORMAL, blurRadius / 2, true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment