From 6aea6245009842527590aad863013f07c21e5430 Mon Sep 17 00:00:00 2001 From: "Andrei.Salavei" Date: Fri, 13 Dec 2024 00:13:54 +0100 Subject: [PATCH] Make custom text trait constant immutable --- .../androidx/compose/ui/platform/Accessibility.uikit.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/platform/Accessibility.uikit.kt b/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/platform/Accessibility.uikit.kt index 6cc3c79c3239a..1397d5430f94c 100644 --- a/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/platform/Accessibility.uikit.kt +++ b/compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/platform/Accessibility.uikit.kt @@ -125,8 +125,8 @@ private object CachedAccessibilityPropertyKeys { } // Private accessibility trait for text fields -internal var CMPAccessibilityTraitTextField: UIAccessibilityTraits = 1UL shl 18 -internal var CMPAccessibilityTraitIsEditing: UIAccessibilityTraits = 1UL shl 21 +internal val CMPAccessibilityTraitTextField: UIAccessibilityTraits = 1UL shl 18 +internal val CMPAccessibilityTraitIsEditing: UIAccessibilityTraits = 1UL shl 21 /** * Represents a projection of the Compose semantics node to the iOS world.