viewDidLoad()

@MainActor
override func viewDidLoad()

Called when the view hierarchy has loaded.

  • This simply strips out all non-decimal characters in the string, leaving only valid decimal digits.

    Declaration

    Swift

    @MainActor
    func stripPhoneNumber(from inString: String) -> String

    Parameters

    from

    The string to be stripped.

    Return Value

    The stripped string.