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
-
Current version.
Declaration
Swift
public var currentVersionReference: PBXObjectReference?
-
Returns the current version file reference.
Declaration
Swift
public var currentVersion: PBXFileReference? { get set }
-
Version group type.
Declaration
Swift
public var versionGroupType: String?
-
init(currentVersionReference:path:name:sourceTree:versionGroupType:childrenReferences:includeInIndex:wrapsLines:usesTabs:indentWidth:tabWidth:)
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 thanname
.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
-
init(currentVersion:path:name:sourceTree:versionGroupType:children:includeInIndex:wrapsLines:usesTabs:indentWidth:tabWidth:)
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 thanname
.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