AnatomyDS Documentation Beta

Classes

DSButton

An Anatomy-styled push button element. Includes properties for adding and positioning Anatomy icons as well as all normal UIButton functionality.

DSIcon​Button

An Anatomy-styled, icon-only push button element that displays a standard Anatomy icon (DSIconRenderingType) as well as all normal UIButton functionality. No title text is allowed.

DSToken​Catalog

A Token database for getting all styles, dimensions, colors, etc. from the Anatomy tokening system. The theme for an app can be changed by assigning catalogs to various properties.

DSDivider

An Anatomy-styled content horizontal divider for use outside of UITableView contexts.

DSIcon

An Anatomy-styled drop-in replacement for a UIImageView that displays a standard Anatomy icon (DSIconRenderingType).

DSIllustration

An Anatomy-styled drop-in replacement for a UIImageView that displays a standard Anatomy illustration (DSIllustrationRenderingType).

DSCredit​Card​Input​Mask

An input mask, when assigned to a DSTextField, will enforce use of a number pad for text entry and format credit card numbers if it recognizes the brand of the card being entered. (e.g., Visa, Mastercard, etc.)

DSCurrency​Input​Mask

An input mask, when assigned to a DSTextField, will enforce use of a decimal pad for text entry and only allows digits and a decimal point (no more than one) to be entered.

DSEmail​Address​Input​Mask

An input mask, when assigned to a DSTextField, will enforce use of an email keyboard for text entry and prevents invalid typing of email addresses where possible.

DSNumber​Input​Mask

An input mask, when assigned to a DSTextField, will enforce use of an number pad for numeric entry where only digits are allowed.

DSPhone​Number​Input​Mask

An input mask, when assigned to a DSTextField, will enforce use of an number pad for text entry and allows only digits to be entered and formatted. Only 10-digit phone numbers are allowed.

DSText​Field

An Anatomy-styled text entry element. Provides placeholder text, helper text that informs the user on what text to enter, an input mask for controlling how text is entered into the input field and an error display when provided validations fail.

Structures

DSAetna​Color​Catalog

A catalog of colors for this particular brand.

DSCVSColor​Catalog

A catalog of colors for this particular brand.

DSCredit​Card

A credit card that identifies properties of various brand types, performs validation, and can perform formatting of their numbers.

DSAdHoc​Validation​Rule

A validation rule that allows for an error message to be expressly set. When the message is non-empty, the validation fails. Useful for showing backend errors.

DSCredit​Card​Validation​Rule

A validation rule for requiring that a credit card number matches a legal format as much as possible.

DSCurrency​Validation​Rule

A validation rule for requiring a valid currency is entered.

DSEmail​Address​Validation​Rule

A validation rule for email addresses. Returns an error when a proper email address has not been formed. Does not verify that an email address exists, only that it's legal.

DSMax​Text​Length​Validation​Rule

A validation rule for capping the length of the text to a maximum amount.

DSMin​Max​Validation​Rule

A validation rule for requiring that text is a number and is between a min and max value. (Inclusive.)

DSNumber​Validation​Rule

A validation rule for requiring that only digits are entered.

DSPhone​Number​Validation​Rule

A validation rule for requiring text to be a phone number of format XXX-XXX-XXXX.

DSRequired​Text​Validation​Rule

A validation rule for requiring that text exists and is not an empty string.

Enumerations

DSButton​Image​Location​Type

Type that defines the rendering font that a DSButton control should use.

DSButton​Rendering​Type

Type that defines the rendering font that a DSButton control should use.

DSCredit​Card​Type

The various brands of credit card.

DSFont​Rendering​Type

Type that defines the rendering font that a generic Anatomy control should use.

DSIcon​Rendering​Size

Type that defines the rendering size of a DSIcon.

DSIcon​Rendering​Type

Type that defines the rendering image that defined the appearance of DSIcon.

DSIllustration​Rendering​Size

Type that defines the rendering size of an DSIllustration.

DSIllustration​Rendering​Type

Type that defines the rendering image that defined the appearance of DSIllustration.

DSText​Field.​Event​Type

Type of Combine events from DSTextField.

DSText​Field​Validation​State

Type that defines a validation status. If the validation is invalid, one offending DSValidationRule is included as part of the value.

Protocols

DSColor​Catalog

A catalog of colors to be provided by all implementing brands.

DSInput​Mask

A masking object that controls what can be legally typed into a DSTextField and handles type formatting while that typing takes place. They do not validate but often "partner" up with validation rules.

DSText​Field​Delegate

A delegate that is notified of various events that occur from DSTextField. Extends UITextViewDelegate so all of those methods can be defined as well.

DSValidation​Rule

A validation framework for defining how text entered into a DSTextField can be validated and an appropriate error message provided if that validation fails. Multiple DSValidationRule objects can stack to perform multiple validations including the special DSRequiredTextValidationRule which is the only built-in rule validates empty fields.