Skip to content

Naming conflict SectionedResults with SwiftData definition in Xcode 27 #5

Description

@SvenMuc

In Xcode 27 (iOS/macOS 27.0+) SwiftData natively supports sectioned queries and thus the definition of SectionedResults conflicts with the definition in this package.

Package Definition

public struct SectionedResults<SectionIdentifier, Result>

Apple SwiftData Definition (iOS 27.0+)

@MainActor @preconcurrency
var sections: SectionedResults<Element, String> { get }

I tried to fix this by explicitly use the module name SectionedQuery.SectionedResults, but this doesn't work because SectionedQuery is used for the module name and the property wrapper @SectionedQuery.

 @SectionedQuery private var sectionedDisciplines: SectionedQuery.SectionedResults<String, Discipline>

See Apple Developer documentation for further details:

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions