Stan
06/04/2025, 9:31 PMMario Andhika
06/05/2025, 9:01 AMspierce7
06/05/2025, 1:28 PMJeff Lockhart
06/06/2025, 2:34 AMonValueChange
lambda is being called with the additional space added after tapping/dragging. The space is added where the cursor is before the tap/drag cursor move. It seems to limit the change to one space between each character. Tapping around eventually results in a space between each character. E.g. typing t-e-s-t and tapping/dragging around:
t
te
tes
test
te st
t e st
t e s t
Any idea what's going on here?
It's the same behavior on Jetbrains Compose plugin 1.6.10-1.8.1 and Kotlin 2.0.21-2.1.21.curioustechizen
06/09/2025, 7:26 AMComposeUIViewController
and UIViewControllerRepresentable
)
MyComposable(state: somePreviewState)
My problem is that when I try to preview this in multiple locales, the locale information seems to get lost somewhere in between the Xcode preview and my Composable.
MyComposable(state: somePreviewState)
.environment(\.locale, .init(identifier: "nl"))
This still shows the English preview.
Anyone has run into this? Any ideas on how to get a Composable implemented in iosMain to recognize the locale passed in from an Xcode preview?Max
06/09/2025, 10:23 PMmohamed rejeb
06/10/2025, 9:34 PMBinish Mathew
06/11/2025, 1:51 PM@Composable
fun Feck() {
AsyncImage(
modifier = Modifier
.size(96.dp)
.clickable {
},
onLoading = { successState ->
println("Image loading...")
},
onSuccess = { successState ->
println("Image loaded successfully!")
},
onError = { errorState ->
println("Image loading failed: ${errorState.result.throwable.message}")
},
model = Res.getUri("drawable/settings_icon_filled.svg"),
colorFilter = ColorFilter.tint(color = Color.Red),
contentDescription = null
)
}
This code works on my sample Android app and iOS app within the kmp project.
I wanted to use the module in another existing ios app. So, I have exported an XCFramework with resources and verified that the resources are bundled.
fun FeckUIViewController() = ComposeUIViewController {
Feck()
}
import UIKit
import SwiftUI
import Foundation
import common
import chatui
struct ComposeView: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIViewController {
let fileManager = FileManager.default
print("--- Listing Main Bundle Contents ---")
// Corrected line: Access bundlePath directly as it's a String, not an Optional
let bundlePath = Bundle.main.bundlePath
print("Main Bundle Path: \(bundlePath)")
do {
let bundleContents = try fileManager.contentsOfDirectory(atPath: bundlePath)
print("Contents of Main Bundle:")
for item in bundleContents {
print("- \(item)")
}
} catch {
print("Error listing main bundle contents: \(error.localizedDescription)")
}
print("\n--- Checking for compose-resources directly in main bundle ---")
if let composeResourcesURL = Bundle.main.url(forResource: "compose-resources", withExtension: nil) {
print("Found compose-resources directory at URL: \(composeResourcesURL.path)")
// Optionally, list contents of compose-resources if found
do {
let resourcesContents = try fileManager.contentsOfDirectory(atPath: composeResourcesURL.path)
print("Contents of compose-resources:")
for item in resourcesContents {
print("- \(item)")
}
} catch {
print("Error listing compose-resources contents: \(error.localizedDescription)")
}
} else {
print("compose-resources directory NOT found in main bundle.")
}
print("\n--- Checking for composeResources directly in main bundle (alternative casing) ---")
if let composeResourcesURL = Bundle.main.url(forResource: "composeResources", withExtension: nil) {
print("Found composeResources directory at URL: \(composeResourcesURL.path)")
} else {
print("composeResources directory NOT found in main bundle.")
}
return FeckViewControllerKt.FeckUIViewController()
}
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
}
struct ContentView: View {
var body: some View {
ComposeView()
.ignoresSafeArea(.keyboard)
}
}
But coil fails to find the resource file.
--- Listing Main Bundle Contents ---
Main Bundle Path: /Users/binishmathew/Library/Developer/CoreSimulator/Devices/AB7ABA72-71AC-4578-89E9-79B6A72AB285/data/Containers/Bundle/Application/4C921F2E-698A-4B4F-A07B-03064D8BD661/ios.app
Contents of Main Bundle:
- _CodeSignature
- ios.debug.dylib
- __preview.dylib
- ios
- Frameworks
- Info.plist
- PkgInfo
--- Checking for compose-resources directly in main bundle ---
compose-resources directory NOT found in main bundle.
--- Checking for composeResources directly in main bundle (alternative casing) ---
composeResources directory NOT found in main bundle.
Image loading...
Image loading failed: No such file or directory
Is there any way to fix this ?Sargun Vohra
06/13/2025, 2:10 AMkrzysztof
06/13/2025, 7:16 AMMario Andhika
06/14/2025, 4:00 AMRafs
06/14/2025, 7:06 AMMario Andhika
06/16/2025, 3:59 AMJimmy Nelle
06/16/2025, 1:05 PMval windowInfo = LocalWindowInfo.current
val isInRecentApps by rememberUpdatedState(!windowInfo.isWindowFocused)
LaunchedEffect(isInRecentApps, signInState) {
println("isInRecentApps: $isInRecentApps")
}
I'm currently experiencing issues with LocalWindowInfo on iOS. It doesn't seem to detect when the app is not focused (i.e., when switching to recent apps or multitasking). I'm using CMP 1.8.1
on iOS 18.4 and 26 Beta
Is anyone else encountering this problem?Isaac Udy
06/17/2025, 8:54 PMIsaac Udy
06/18/2025, 10:31 AMIsaac Udy
06/18/2025, 11:08 PMKashismails
06/19/2025, 10:55 AMStan
06/20/2025, 8:02 PMDumitru Preguza
06/21/2025, 12:10 PMAngel Solis
06/23/2025, 1:37 PMroot/
├── core/
│ └── Rive/
├── myApp/
├── androidApp/
├── shared/
└── iosApp/
How can i setup Rive iOS in the core:rive and use it in iosMain? core:rive does not have an iosAppDaniele B
06/24/2025, 8:44 PMError running "iosApp"
@NotNull method com/intellij/execution/configurations/GeneralCommandLine.getExePath must not return null
I also get a warning:
search path '/Users/MYDIR/KotlinProject/shared/build/xcode-frameworks/Debug/iphoneos18.5' not found
It's looking for that file in the "shared" directory, which doesn't exist.
I can see the "/shared/" path is referenced inside the "_/Users/MYDIR/KotlinProject/iosApp/iosApp.xcodeproj/project.pbxproj_" file, in the "FRAMEWORK_SEARCH_PATHS" values.
This is the first KMP project I see without the "shared" subproject, having only the "ComposeApp" and "iosApp" subprojects. The KotlinConf app still has a "shared" subproject, despite being a CMP app.
In case of a CMP app, not having a "shared" subproject makes sense to me, as all the shared code can go within the "ComposeApp" subproject.
So, the project structure sounds right. There must be some bugs in the project configurations.Max
06/24/2025, 11:00 PMJimmy Nelle
06/25/2025, 7:42 AMException in thread "main" java.lang.Error: /Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:10:9: fatal error: 'UIUtilities/UIDefines.h' file not found
/Users/jimbo/dev/myproject/core/build/spmKmpPlugin/coreNativeIosShared/scratch/checkouts/GoogleSignIn-iOS/GoogleSignIn/Sources/Public/GoogleSignIn/GIDGoogleUser.h:21:9: fatal error: could not build module 'UIKit'
/Users/jimbo/dev/myproject/core/build/spmKmpPlugin/coreNativeIosShared/scratch/checkouts/gtm-session-fetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:265:9: fatal error: could not build module 'UIKit'
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:80)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:15)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:567)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:307)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:243)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.access$processCLibSafe(main.kt:1)
at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:48)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:23)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:44)
Giuseppe Joshua Falcone
06/25/2025, 3:18 PMClément Vandendaelen
06/26/2025, 12:41 PMlogosdeborah
06/27/2025, 12:31 PMText(
modifier = Modifier
.background(Color.Yellow)
.padding(8.dp),
text = "1234",
letterSpacing = 16.sp,
fontSize = 20.sp,
)
The first image is iOS and the second one is Android.dhia chemingui
06/30/2025, 10:54 AMFedor Sorokin
06/30/2025, 12:05 PMneworldlt
07/01/2025, 1:18 PMGesture: System gesture gate timed out
. I can not understand what I added which caused gesture problems?