Classes
The following classes are available globally.
-
See moreRSDCrosshatchViewis a UI element for displaying a background that is two colors where the split is diagonal.Declaration
Swift
@IBDesignable open class RSDCrosshatchView: UIView
-
See moreRSDShadowGradientis a UI element for adding a shadow gradient to a view.Declaration
Swift
@IBDesignable open class RSDShadowGradient : UIView
-
See moreRSDStepChoiceCellis the base implementation for a selection table view cell of a form step.Declaration
Swift
public class RSDStepChoiceCell: UITableViewCell -
See moreRSDStepTextFieldCellis the base implementation of a text field used to enter answers in a form step table view.Declaration
Swift
open class RSDStepTextFieldCell: UITableViewCell -
See moreRSDStepTextFieldFeaturedCellis an implementation of the text field form step entry cell for use when there is a single input field on for the step.Declaration
Swift
open class RSDStepTextFieldFeaturedCell: RSDStepTextFieldCell -
See moreRSDStepTextFieldis a subclass ofUITextFieldthat keeps a reference to the index path associated with this text field.Declaration
Swift
public class RSDStepTextField: UITextField -
See moreRSDTextLabelCellcan be used to display a text element such as a footnote in a table.Declaration
Swift
@IBDesignable open class RSDTextLabelCell : UITableViewCell -
See moreRSDImageViewCellcan be used to display images amongst the table cells.Declaration
Swift
@IBDesignable open class RSDImageViewCell : UITableViewCell
-
See moreRSDLoadingViewis a simple loading view for displaying a loading indicator in a view.Declaration
Swift
open class RSDLoadingView: UIView
-
See moreRSDDatePickeris a date picker that stores a pointer to the index path with which it is associated.Declaration
Swift
public class RSDDatePicker : UIDatePicker, RSDPickerViewProtocol -
See moreRSDChoicePickerViewis aUIPickerViewthat can be used to represent a picker with an associated index path. This picker has aRSDChoicePickerDataSourceas it’s source. This implementation only supports text choices.Declaration
Swift
open class RSDChoicePickerView : UIPickerView, RSDPickerViewProtocol, UIPickerViewDataSource, UIPickerViewDelegate -
See moreRSDNumberPickerViewis aUIPickerViewthat can be used to represent a picker with an associated index path. This picker has aRSDNumberPickerDataSourceas it’s source.Declaration
Swift
open class RSDNumberPickerView : UIPickerView, RSDPickerViewProtocol, UIPickerViewDataSource, UIPickerViewDelegate
-
RSDTableStepViewControlleris a custom instance ofRSDStepViewController. Its subviews include aUITableView, aRSDNavigationFooterView, which may or may not be embedded in the tableView as its footerView, and aRSDNavigationHeaderView, which is embedded in the tableView as its headerView.This class populates the contents and properties of the headerView and navigationView based on the associated
RSDStep, which is expected to be set before presenting the view controller.An instance of
RSDFormStepDataSourceis created bysetupModel()and assigned to propertytableData. This method is called byviewWillAppear()and serves as theUITableViewDataSource. ThetableDataalso keeps track of answers that are derived from the user’s input and it provides theRSDResultthat is appended to theRSDTaskPathassociated with this task.This class is responsible for acquiring input from the user, validating it, and supplying it as an answer to to the model (tableData). This is typically done in delegate callbacks from various input views, such as UITableView (didSelectRow) or UITextField (valueDidChange or shouldChangeCharactersInRange).
Some RSDSteps, such as
See moreRSDFactory.StepType.instruction, require no user input (and have no input fields). These steps will result in atableDatathat has no sections and, therefore, no rows. So the tableView will simply have a headerView, no rows, and a footerView.Declaration
Swift
open class RSDTableStepViewController: RSDStepViewController, UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate, RSDFormStepDataSourceDelegate, RSDPickerObserver -
See moreRSDTableStepUIConfigis a configuration class. All the methods are defined as@objc open class funcmethods which can be overriden by an application to return different shared implementations. This allows the generic step to override the UI consistently for all step views that use eitherRSDTableStepViewControlleror a subclass implementation.Declaration
Swift
public class RSDTableStepUIConfig: NSObject
-
See moreRSDStepNavigationViewis a customUIViewto be included in aRSDStepViewController. It optionally contains references to standard step navigation UI including a next button, back button, skip button, learn more button, and cancel button.Declaration
Swift
open class RSDStepNavigationView: UIView -
See moreRSDNavigationHeaderViewis a general purpose navigation header view that can be used by the step view controller to include UI elements that may typically be shown at the top of the step view.Declaration
Swift
open class RSDNavigationHeaderView: RSDStepNavigationView -
See moreRSDStepHeaderViewis a customUIViewdesigned for use as a header view in a table view, such as anRSDTableStepViewController.Declaration
Swift
open class RSDStepHeaderView: RSDNavigationHeaderView -
RSDTableStepHeaderViewis a concrete implementation ofRSDStepHeaderViewthat will automatically lay out the UI elements in this order, from top to bottom of the view:- cancelButton: UIButton - allows for cancelling the task
- progressView: RSDStepProgressView - show progress thru the current flow
- imageView: UIImageView - shows an image associated with the current step
- titleLabel: UILabel - generally the Title of the current step
- textLabel: UILabel - generally the Text of the current step
- learnMoreButton: UIButton - a button to call the learnMoreAction
- detailLabel: UILabel - a label intended to prompt the user to enter data or make a selection
Several public properties are provided to configure the view, such has hiding or showing the learnMoreButton or progressView, and providing a minimumHeight or customView.
See moreDeclaration
Swift
open class RSDTableStepHeaderView: RSDStepHeaderView -
See moreRSDNavigationFooterViewis an abstract implementation for theRSDStepNavigationViewwhich can be added to a Nib, Storyboard or instantiated using theRSDTableStepUIConfig.instantiatNavigationView()method.Declaration
Swift
open class RSDNavigationFooterView: RSDStepNavigationView -
RSDGenericNavigationFooterViewis a concrete implementation ofRSDNavigationFooterViewthat will automatically lay out the UI elements included in the navigation footer:- nextButton: UIButton - for navigating to the next step
- backButton: UIButton - for navigating to the previous step
- skipButton: UIButton - for skipping the step or task
- shadowView: RSDShadowGradient - shows a shadow to indicate that there is content below the fold
Declaration
Swift
open class RSDGenericNavigationFooterView: RSDNavigationFooterView
-
RSDTaskInfoStepViewControlleris designed to be used to display aRSDTaskInfoStepeither to give the user feedback when a task or survey is being fetched or else to provide a consistent UI for the introduction of all tasks.This view controller includes a default nib implementation that is included in this framework. It includes various UI elements that can indicate to the user how much time is remaining in a longer-running step. For example, this could be used during a walk step to indicate to the user how long they have been walking as well as how much longer they have to walk before the step is complete.
See moreDeclaration
Swift
open class RSDTaskInfoStepViewController: RSDStepViewController, UITextViewDelegate
-
RSDStepProgressViewis a UI element that displays a progress bar drawn horizontally from left to right.This view includes an optional pointer to
stepCountLabelwhich is not a subview of this view but can be used to display current step and number of steps.The view controller must set
See morecurrentStepandtotalStepsto cause progress to be displayed.Declaration
Swift
open class RSDStepProgressView: UIView
-
RSDCountdownStepViewControlleris a simple countdown timer for displaying a short duration (5-4-3-2-1) countdown.This view controller includes a default nib implementation that is included in this framework. It includes a
See morecountdownLabelthat can be used to show a numeric countdown (5-4-3-2-1) and apauseButtonthat can be used to pause the countdown timer.Declaration
Swift
open class RSDCountdownStepViewController: RSDStepViewController
-
RSDNavigationControllerextendsUINavigationControllerwith a pass-through implementation ofRSDStepController. This allows step controllers to be wrapped in a navigation controller for UI implementations that use the features of a navigation controller, while passing control of the step to the step controller.See moreNote
For applications that customize the navigation controller with their own subclass implementation, this implementation can be copy/pasted and used to extend that custom implementation. This framework does not force using this implementation by extendingUINavigationControllerdirectly.Declaration
Swift
open class RSDNavigationController : UINavigationController, RSDStepController
-
See moreRSDButtonis a base-class implementation ofRSDButtonProtocolthat handles overriding default accessibility behavior for a button in transition.Declaration
Swift
@IBDesignable open class RSDButton : UIButton
-
See moreRSDStepViewControlleris the default base class implementation for the steps presented using this UI architecture.Declaration
Swift
open class RSDStepViewController : UIViewController, RSDStepViewControllerProtocol
-
RSDActiveStepViewControlleris a simple timer for displaying a longer activity where the user is doing an action while the countdown timer is running.This view controller includes a default nib implementation that is included in this framework. It includes various UI elements that can indicate to the user how much time is remaining in a longer-running step. For example, this could be used during a walk step to indicate to the user how long they have been walking as well as how much longer they have to walk before the step is complete.
See moreDeclaration
Swift
open class RSDActiveStepViewController: RSDStepViewController
-
See moreRSDTaskViewControlleris the default implementation of task view controller that is suitable to the iPhone or iPad. The default implementation will display a series of steps using aUIPageViewController. This controller will also handle starting and stoping async actions and vending the appropriate step view controller for each step.Declaration
Swift
open class RSDTaskViewController: UIViewController, RSDTaskController, UIPageViewControllerDelegate, UIPageViewControllerDataSource, RSDAsyncActionControllerDelegate, RSDLoadingViewControllerProtocol
-
See moreRSDAudioSoundPlayeris a concrete implementation of theRSDSoundPlayerprotocol that can be used to play system sounds usingAudioServicesCreateSystemSoundID().Declaration
Swift
open class RSDAudioSoundPlayer : NSObject, RSDSoundPlayer
-
See moreRSDWebViewControlleris a simple view controller for showing a webview. The base-class implementation supports loading a web view from a URL, HTML string, orRSDResourceTransformer. It is assumed that the property will be set for one of these values.Declaration
Swift
open class RSDWebViewController: UIViewController, UIWebViewDelegate
-
See moreRSDSpeechSynthesizeris a concrete implementation of theRSDVoiceBoxprotocol that uses theAVSpeechSynthesizerto synthesize text to sound.Declaration
Swift
open class RSDSpeechSynthesizer : NSObject, RSDVoiceBox, AVSpeechSynthesizerDelegate
-
See moreRSDProgressIndicatoris an animatable abstract view that marks progress. Override theprogressLayerproperty to show progress using a shape layer. SeeRSDCountdownDialfor an example implementation.Declaration
Swift
open class RSDProgressIndicator: UIView -
Declaration
Swift
public final class RSDCountdownDial: RSDProgressIndicator
View on GitHub
Classes Reference