Other Functions

The following functions are available globally.

Username Validation

  • Three differernt POST structs contain username fields; this fn exists to ensure they all validate the username the same way. This fn is designed to return a list of validation failure strings–if it returns an empty array the username is valid.

    Declaration

    Swift

    private func usernameValidations(username: String) -> [String]

Utilities