SITURL

Objective-C

@interface SITURL : NSObject

Swift

class SITURL : NSObject

Abstraction of URL. Unifies management of both absolutes and relatives URLs.

Initializers

  • Initializer

    Note

    Accepts both absolute and relative URLs

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithDirection:(NSString *_Nonnull)direction;

    Swift

    init(direction: String)

    Parameters

    direction

    The URL

    Return Value

    SITURL

Properties

  • True if the value used to construct the URL doesn’t start by ‘/’, meaning it has a specific host.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isAbsolute;

    Swift

    var isAbsolute: Bool { get }
  • The URL

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull direction;

    Swift

    var direction: String { get }