Skip to content

Expression class conflicts with swiftUI #1323

@MartinBell

Description

@MartinBell

Hello, Im just starting to use your library, looks very neat :) however this stumped me for a while

including swiftUI and SQLite in the same file will conflict when building expressions

import SwiftUI
import SQLite

static let idExpression = Expression("id"). Does not compile

The confusing error message is: Missing argument label 'value:' in call

static let idExpression = SQLite.Expression("id") will compile, but its not obvious from the readme that this might be an issue.

I thought it worth adding to the readme, as swiftUI is now the recommended way to create UI. Im surprised its not come up before. Im using Swift 5 and building for the iOS simulator on Apple Silicon macbook, xcode 16.2. I think Expression came in in in iOS 18

Thank you

Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions