I am not able to use Data class in my swift file i...
# multiplatform
b
I am not able to use Data class in my swift file is it not supported os is there any special way
d
Provide a code example.
data class
interop. working fine here.
b
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
)
i have this in Common main
Copy code
struct GoogleSigninBridge {
    
    func signIn(completion:(GoogleSignInResult, Error?) -> Void) {

    }
 
}
This is what i am trying but i am getting this error @darkmoon_uk
d
Did you...
import shared
...at the top of your Swift file?
b
Copy code
import Foundation
import GoogleSignIn
import ComposeApp
i dont have shared i have composeApp
@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
👍 1