I am not able to use Data class in my swift file is it not supported os is there any special way
d
darkmoon_uk
07/08/2025, 3:24 AM
Provide a code example.
data class
interop. working fine here.
b
bk9735732777
07/08/2025, 4:18 AM
Copy code
data class GoogleSignInResult(
val isSuccess: Boolean,
val userInfo: GoogleUserInfo? = null,
val errorMessage: String? = null
)
data class GoogleUserInfo(
val userId: String,
val email: String,
val displayName: String,
val photoUrl: String? = null,
val idToken: String? = null
)
This is what i am trying but i am getting this error
@darkmoon_uk
d
darkmoon_uk
07/08/2025, 4:22 AM
Did you...
import shared
...at the top of your Swift file?
b
bk9735732777
07/08/2025, 5:56 AM
Copy code
import Foundation
import GoogleSignIn
import ComposeApp
i dont have shared i have composeApp
bk9735732777
07/08/2025, 6:01 AM
@darkmoon_uk there was some pod other dependency error actually but it was showing this error too idk maybe some compilation issue or something now it is workinmg