PBXFileElement

public class PBXFileElement : PBXContainerItem, PlistSerializable

This element is an abstract parent for file and group elements.

  • Element source tree.

    Declaration

    Swift

    public var sourceTree: PBXSourceTree?
  • Element path.

    Declaration

    Swift

    public var path: String?
  • Element name.

    Declaration

    Swift

    public var name: String?
  • Element include in index.

    Declaration

    Swift

    public var includeInIndex: Bool?
  • Element uses tabs.

    Declaration

    Swift

    public var usesTabs: Bool?
  • Element indent width.

    Declaration

    Swift

    public var indentWidth: UInt?
  • Element tab width.

    Declaration

    Swift

    public var tabWidth: UInt?
  • Element wraps lines.

    Declaration

    Swift

    public var wrapsLines: Bool?
  • Initializes the file element with its properties.

    Declaration

    Swift

    public init(sourceTree: PBXSourceTree? = nil,
                path: String? = nil,
                name: String? = nil,
                includeInIndex: Bool? = nil,
                usesTabs: Bool? = nil,
                indentWidth: UInt? = nil,
                tabWidth: UInt? = nil,
                wrapsLines: Bool? = nil)

    Parameters

    sourceTree

    file source tree.

    path

    object relative path from sourceTree, if different than name.

    name

    object name.

    includeInIndex

    should the IDE index the object?

    usesTabs

    object uses tabs.

    indentWidth

    the number of positions to indent blocks of code

    tabWidth

    the visual width of tab characters

    wrapsLines

    should the IDE wrap lines when editing the object?

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Returns a file absolute path.

    Throws

    an error if the absolute path cannot be obtained.

    Declaration

    Swift

    public func fullPath(sourceRoot: AbsolutePath) throws -> AbsolutePath?

    Parameters

    sourceRoot

    project source root.

    Return Value

    file element absolute path.