Skip to content

Swift Demo not compiled #567

Description

@videni

Hi, how do you guys fix this the error please? I am using the latest code from the master.

apps/swift/octobase-demo/octobase_demoApp.swift#L26C1-L27C1

class JwstWorkspace: ObservableObject {
    var workspace: Workspace
    
    init (workspace: String) {
      // Not compiled ,  even changing it to Workspace(ptr: workspace.intoRustString())
        self.workspace = Workspace(workspace)
    }
}

Error

OctoBase/apps/swift/octobase-demo/octobase_demoApp.swift:26:36 Cannot convert value of type 'String' to expected argument type 'UnsafeMutableRawPointer'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions