XCVersionGroup

public final class XCVersionGroup : PBXGroup

Group that contains multiple files references to the different versions of a resource. Used to contain the different versions of a xcdatamodel

  • Initializes the group with its attributes.

    Declaration

    Swift

    @available(*, deprecated, message: "Use the constructor that takes objects instead of references")
    public init(currentVersionReference: PBXObjectReference? = nil,
                path: String? = nil,
                name: String? = nil,
                sourceTree: PBXSourceTree? = nil,
                versionGroupType: String? = nil,
                childrenReferences: [PBXObjectReference] = [],
                includeInIndex: Bool? = nil,
                wrapsLines: Bool? = nil,
                usesTabs: Bool? = nil,
                indentWidth: UInt? = nil,
                tabWidth: UInt? = nil)

    Parameters

    currentVersionReference

    reference to the current version.

    name

    group name.

    path

    group relative path from sourceTree, if different than name.

    sourceTree

    group source tree.

    versionGroupType

    identifier of the group type.

    childrenReferences

    group children references.

    includeInIndex

    should the IDE index the files in the group?

    wrapsLines

    should the IDE wrap lines for files in the group?

    usesTabs

    group uses tabs.

    indentWidth

    the number of positions to indent blocks of code

    tabWidth

    the visual width of tab characters

  • Initializes the group with its attributes.

    Declaration

    Swift

    public convenience init(currentVersion: PBXFileReference? = nil,
                            path: String? = nil,
                            name: String? = nil,
                            sourceTree: PBXSourceTree? = nil,
                            versionGroupType: String? = nil,
                            children: [PBXFileElement] = [],
                            includeInIndex: Bool? = nil,
                            wrapsLines: Bool? = nil,
                            usesTabs: Bool? = nil,
                            indentWidth: UInt? = nil,
                            tabWidth: UInt? = nil)

    Parameters

    currentVersion

    current version file reference.

    name

    group name.

    path

    group relative path from sourceTree, if different than name.

    sourceTree

    group source tree.

    versionGroupType

    identifier of the group type.

    children

    group children.

    includeInIndex

    should the IDE index the files in the group?

    wrapsLines

    should the IDE wrap lines for files in the group?

    usesTabs

    group uses tabs.

    indentWidth

    the number of positions to indent blocks of code

    tabWidth

    the visual width of tab characters

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws