Calle Höglund
08/21/2025, 9:34 AM@Composable
actual fun NativeButton(
enabled: Boolean,
onClick: () -> Unit,
modifier: Modifier
) {
val factory: NativeViewFactory = LocalNativeViewFactory.current
UIKitViewController(
modifier = modifier,
factory = {
factory.createNativeButton(
enabled = enabled,
onClick = onClick,
)
}
)
}
Changing the enabled flag is not updating the UI in SwiftUI. How do i achieve this? Any suggestions?
Thanks! 🙏Richard
08/21/2025, 9:42 AMCalle Höglund
08/21/2025, 10:19 AMRichard
08/21/2025, 10:21 AMCalle Höglund
08/21/2025, 10:36 AM