prefix
Returns the prefix of the receiver’s name.
Declaration
var prefix: String? { get }Return Value
A string containing the receiver’s prefix. This method returns an empty string if the receiver’s name is not qualified by a namespace.
Discussion
The prefix is the part of a namespace-qualified name that precedes the colon. For example, “acme” is the prefix in the qualified name “acme:chapter”.