Reactive

struct Reactive<Base>
  • Sets the map type.

    Declaration

    Swift

    public var mapType: BindingTarget<MKMapType>
  • Sets if zoom is enabled for map.

    Declaration

    Swift

    public var isZoomEnabled: BindingTarget<Bool>
  • Sets if scroll is enabled for map.

    Declaration

    Swift

    public var isScrollEnabled: BindingTarget<Bool>
  • Sets if pitch is enabled for map.

    Declaration

    Swift

    public var isPitchEnabled: BindingTarget<Bool>
  • Sets if rotation is enabled for map.

    Declaration

    Swift

    public var isRotateEnabled: BindingTarget<Bool>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • A signal of integer states (On, Off, Mixed), emitted by the button.

    Declaration

    Swift

    public var states: Signal<Int, NoError>
  • Sets the button’s state

    Declaration

    Swift

    public var state: BindingTarget<Int>
  • Sets the button’s image

    Declaration

    Swift

    public var image: BindingTarget<NSImage?>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • Sets whether the control is enabled.

    Declaration

    Swift

    public var isEnabled: BindingTarget<Bool>
  • Sets the value of the control with an NSAttributedString.

    Declaration

    Swift

    public var attributedStringValue: BindingTarget<NSAttributedString>
  • A signal of values in NSAttributedString, emitted by the control.

    Declaration

    Swift

    public var attributedStringValues: Signal<NSAttributedString, NoError>
  • Sets the value of the control with a Bool.

    Declaration

    Swift

    public var boolValue: BindingTarget<Bool>
  • A signal of values in Bool, emitted by the control.

    Declaration

    Swift

    public var boolValues: Signal<Bool, NoError>
  • Sets the value of the control with a Double.

    Declaration

    Swift

    public var doubleValue: BindingTarget<Double>
  • A signal of values in Double, emitted by the control.

    Declaration

    Swift

    public var doubleValues: Signal<Double, NoError>
  • Sets the value of the control with a Float.

    Declaration

    Swift

    public var floatValue: BindingTarget<Float>
  • A signal of values in Float, emitted by the control.

    Declaration

    Swift

    public var floatValues: Signal<Float, NoError>
  • Sets the value of the control with an Int32.

    Declaration

    Swift

    public var intValue: BindingTarget<Int32>
  • A signal of values in Int32, emitted by the control.

    Declaration

    Swift

    public var intValues: Signal<Int32, NoError>
  • Sets the value of the control with an Int.

    Declaration

    Swift

    public var integerValue: BindingTarget<Int>
  • A signal of values in Int, emitted by the control.

    Declaration

    Swift

    public var integerValues: Signal<Int, NoError>
  • Sets the value of the control.

    Declaration

    Swift

    public var objectValue: BindingTarget<Any?>
  • A signal of values in Any?, emitted by the control.

    Declaration

    Swift

    public var objectValues: Signal<Any?, NoError>
  • Sets the value of the control with a String.

    Declaration

    Swift

    public var stringValue: BindingTarget<String>
  • A signal of values in String, emitted by the control.

    Declaration

    Swift

    public var stringValues: Signal<String, NoError>
  • Sets the currently displayed image

    Declaration

    Swift

    public var image: BindingTarget<NSImage?>
  • Sets the constant.

    Declaration

    Swift

    public var constant: BindingTarget<CGFloat>
  • Creates a binding target which uses the lifetime of the object, and weakly references the object so that the supplied action is triggered only if the object has not deinitialized.

    Declaration

    Swift

    public func makeBindingTarget<U>(on scheduler: Scheduler = UIScheduler(), _ action: @escaping (Base, U) -> Void) -> BindingTarget<U>

    Parameters

    scheduler

    An optional scheduler that the binding target uses. If it is not specified, a UI scheduler would be used.

    action

    The action to consume values from the bindings.

    Return Value

    A binding target that holds no strong references to the object.

  • Create a signal which sends a next event at the end of every invocation of selector on the object.

    It completes when the object deinitializes.

    Note

    Observers to the resulting signal should not call the method specified by the selector.

    Declaration

    Swift

    public func trigger(for selector: Selector) -> Signal<(), NoError>

    Parameters

    selector

    The selector to observe.

    Return Value

    A trigger signal.

  • Create a signal which sends a next event, containing an array of bridged arguments, at the end of every invocation of selector on the object.

    It completes when the object deinitializes.

    Note

    Observers to the resulting signal should not call the method specified by the selector.

    Declaration

    Swift

    public func signal(for selector: Selector) -> Signal<[Any?], NoError>

    Parameters

    selector

    The selector to observe.

    Return Value

    A signal that sends an array of bridged arguments.

  • Create a producer which sends the current value and all the subsequent changes of the property specified by the key path.

    The producer completes when the object deinitializes.

    Declaration

    Swift

    public func producer(forKeyPath keyPath: String) -> SignalProducer<Any?, NoError>

    Parameters

    keyPath

    The key path of the property to be observed.

    Return Value

    A producer emitting values of the property specified by the key path.

  • Create a signal all changes of the property specified by the key path.

    The signal completes when the object deinitializes.

    Note

    Does not send the initial value. See producer(forKeyPath:).

    Declaration

    Swift

    public func signal(forKeyPath keyPath: String) -> Signal<Any?, NoError>

    Parameters

    keyPath

    The key path of the property to be observed.

    Return Value

    A producer emitting values of the property specified by the key path.

  • Returns a lifetime that ends when the object is deallocated.

    Declaration

    Swift

    @nonobjc public var lifetime: Lifetime
  • A signal of selected indexes

    Declaration

    Swift

    public var selectedIndexes: Signal<Int, NoError>
  • Sets the button with an index.

    Declaration

    Swift

    public var selectedIndex: BindingTarget<Int?>
  • A signal of selected title

    Declaration

    Swift

    public var selectedTitles: Signal<String, NoError>
  • Sets the button with title. note: emitting nil to this target will set selectedTitle to empty string

    Declaration

    Swift

    public var selectedTitle: BindingTarget<String?>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • A signal of selected tags

    Declaration

    Swift

    public var selectedTags: Signal<Int, NoError>
  • Sets the selected tag

    Declaration

    Swift

    public var selectedTag: BindingTarget<Int>
  • Changes the selected segment of the segmented control.

    Declaration

    Swift

    public var selectedSegment: BindingTarget<Int>
  • A signal of indexes of selections emitted by the segmented control.

    Declaration

    Swift

    public var selectedSegments: Signal<Int, NoError>
  • The below are provided for cross-platform compatibility Changes the selected segment of the segmented control.

    Declaration

    Swift

    public var selectedSegmentIndex: BindingTarget<Int>
  • A signal of indexes of selections emitted by the segmented control.

    Declaration

    Swift

    public var selectedSegmentIndexes: Signal<Int, NoError>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • A signal of values in String from the text field upon any changes.

    Declaration

    Swift

    public var continuousStringValues: Signal<String, NoError>
  • A signal of values in NSAttributedString from the text field upon any changes.

    Declaration

    Swift

    public var continuousAttributedStringValues: Signal<NSAttributedString, NoError>
  • Wraps the stringValue binding target from NSControl for cross-platform compatibility

    Declaration

    Swift

    public var text: BindingTarget<String>
  • Wraps the stringValue binding target from NSControl for cross-platform compatibility

    Declaration

    Swift

    public var attributedText: BindingTarget<NSAttributedString>
  • Sets the color of the text with an NSColor.

    Declaration

    Swift

    public var textColor: BindingTarget<NSColor>
  • Sets whether the activity indicator should be animating.

    Declaration

    Swift

    public var isAnimating: BindingTarget<Bool>
  • The action to be triggered when the button is pressed. It also controls the enabled state of the button.

    Declaration

    Swift

    public var pressed: CocoaAction<Base>?
  • Sets whether the bar item is enabled.

    Declaration

    Swift

    public var isEnabled: BindingTarget<Bool>
  • Sets image of bar item.

    Declaration

    Swift

    public var image: BindingTarget<UIImage?>
  • Sets the title of bar item.

    Declaration

    Swift

    public var title: BindingTarget<String?>
  • The action to be triggered when the button is pressed. It also controls the enabled state of the button.

    Declaration

    Swift

    public var pressed: CocoaAction<Base>?
  • Sets the title of the button for its normal state.

    Declaration

    Swift

    public var title: BindingTarget<String>
  • Sets the title of the button for the specified state.

    Declaration

    Swift

    public func title(for state: UIControlState) -> BindingTarget<String>
  • Sets the image of the button for the specified state.

    Declaration

    Swift

    public func image(for state: UIControlState) -> BindingTarget<UIImage?>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • Create a signal which sends a value event for each of the specified control events.

    Note

    If you mean to observe the value of self with regard to a particular control event, mapControlEvents(_:_:) should be used instead.

    Declaration

    Swift

    public func controlEvents(_ controlEvents: UIControlEvents) -> Signal<Base, NoError>

    Parameters

    controlEvents

    The control event mask.

    Return Value

    A signal that sends the control each time the control event occurs.

  • Create a signal which sends a value event for each of the specified control events.

    Important

    You should use mapControlEvents in general unless the state of the control — e.g. text, state — is not concerned. In other words, you should avoid using map on a control event signal to extract the state from the control.

    Note

    For observations that could potentially manipulate the first responder status of base, mapControlEvents(_:_:) is made aware of the potential recursion induced by UIKit and would collect the values for the control events accordingly using the given transform.

    Declaration

    Swift

    public func mapControlEvents<Value>(_ controlEvents: UIControlEvents, _ transform: @escaping (Base) -> Value) -> Signal<Value, NoError>

    Parameters

    controlEvents

    The control event mask.

    transform

    A transform to reduce Base.

    Return Value

    A signal that sends the reduced value from the control each time the control event occurs.

  • Sets whether the control is enabled.

    Declaration

    Swift

    public var isEnabled: BindingTarget<Bool>
  • Sets whether the control is selected.

    Declaration

    Swift

    public var isSelected: BindingTarget<Bool>
  • Sets whether the control is highlighted.

    Declaration

    Swift

    public var isHighlighted: BindingTarget<Bool>
  • Sets the date of the date picker.

    Declaration

    Swift

    public var date: BindingTarget<Date>
  • A signal of dates emitted by the date picker.

    Declaration

    Swift

    public var dates: Signal<Date, NoError>
  • Prepares the feedback generator.

    Declaration

    Swift

    public var prepare: BindingTarget<()>
  • Create a signal which sends a next event for each gesture event

    Declaration

    Swift

    public var stateChanged: Signal<Base, NoError>

    Return Value

    A trigger signal.

  • Sets the image of the image view.

    Declaration

    Swift

    public var image: BindingTarget<UIImage?>
  • Sets the image of the image view for its highlighted state.

    Declaration

    Swift

    public var highlightedImage: BindingTarget<UIImage?>
  • Triggers the feedback.

    Declaration

    Swift

    public var impactOccurred: BindingTarget<()>
  • Create a Signal that notifies whenever the system keyboard announces an upcoming change in its frame.

    Declaration

    Swift

    public var keyboardChange: Signal<KeyboardChangeContext, NoError>

    Return Value

    A Signal that emits the context of every change in the system keyboard’s frame.

  • Sets the text of the label.

    Declaration

    Swift

    public var text: BindingTarget<String?>
  • Sets the attributed text of the label.

    Declaration

    Swift

    public var attributedText: BindingTarget<NSAttributedString?>
  • Sets the color of the text of the label.

    Declaration

    Swift

    public var textColor: BindingTarget<UIColor>
  • Sets the title of the navigation item.

    Declaration

    Swift

    public var title: BindingTarget<String?>
  • Sets the prompt of the navigation item.

    Declaration

    Swift

    public var prompt: BindingTarget<String?>
  • Triggers the feedback.

    Declaration

    Swift

    public var notificationOccurred: BindingTarget<UINotificationFeedbackType>
  • Sets the selected row in the specified component, without animating the position.

    Declaration

    Swift

    public func selectedRow(inComponent component: Int) -> BindingTarget<Int>
  • Reloads all components

    Declaration

    Swift

    public var reloadAllComponents: BindingTarget<()>
  • Reloads the specified component

    Declaration

    Swift

    public var reloadComponent: BindingTarget<Int>
  • Create a signal which sends a value event for each row selection

    Declaration

    Swift

    public var selections: Signal<(row: Int, component: Int), NoError>

    Return Value

    A trigger signal.

  • Sets the relative progress to be reflected by the progress view.

    Declaration

    Swift

    public var progress: BindingTarget<Float>
  • Sets whether the refresh control should be refreshing.

    Declaration

    Swift

    public var isRefreshing: BindingTarget<Bool>
  • Sets the attributed title of the refresh control.

    Declaration

    Swift

    public var attributedTitle: BindingTarget<NSAttributedString?>
  • The action to be triggered when the refresh control is refreshed. It also controls the enabled and refreshing states of the refresh control.

    Declaration

    Swift

    public var refresh: CocoaAction<Base>?
  • Sets the content inset of the scroll view.

    Declaration

    Swift

    public var contentInset: BindingTarget<UIEdgeInsets>
  • Sets the scroll indicator insets of the scroll view.

    Declaration

    Swift

    public var scrollIndicatorInsets: BindingTarget<UIEdgeInsets>
  • Sets whether scrolling the scroll view is enabled.

    Declaration

    Swift

    public var isScrollEnabled: BindingTarget<Bool>
  • Sets the zoom scale of the scroll view.

    Declaration

    Swift

    public var zoomScale: BindingTarget<CGFloat>
  • Sets the minimum zoom scale of the scroll view.

    Declaration

    Swift

    public var minimumZoomScale: BindingTarget<CGFloat>
  • Sets the maximum zoom scale of the scroll view.

    Declaration

    Swift

    public var maximumZoomScale: BindingTarget<CGFloat>
  • Sets the text of the search bar.

    Declaration

    Swift

    public var text: BindingTarget<String?>
  • A signal of text values emitted by the search bar upon end of editing.

    Note

    To observe text values that change on all editing events, see continuousTextValues.

    Declaration

    Swift

    public var textValues: Signal<String?, NoError>
  • A signal of text values emitted by the search bar upon any changes.

    Note

    To observe text values only when editing ends, see textValues.

    Declaration

    Swift

    public var continuousTextValues: Signal<String?, NoError>
  • Changes the selected segment of the segmented control.

    Declaration

    Swift

    public var selectedSegmentIndex: BindingTarget<Int>
  • A signal of indexes of selections emitted by the segmented control.

    Declaration

    Swift

    public var selectedSegmentIndexes: Signal<Int, NoError>
  • Triggers the feedback.

    Declaration

    Swift

    public var selectionChanged: BindingTarget<()>
  • Sets slider’s value.

    Declaration

    Swift

    public var value: BindingTarget<Float>
  • Sets slider’s minimum value.

    Declaration

    Swift

    public var minimumValue: BindingTarget<Float>
  • Sets slider’s maximum value.

    Declaration

    Swift

    public var maximumValue: BindingTarget<Float>
  • A signal of float values emitted by the slider while being dragged by the user.

    Note

    If slider’s isContinuous property is false then values are sent only when user releases the slider.

    Declaration

    Swift

    public var values: Signal<Float, NoError>
  • Sets the stepper’s value.

    Declaration

    Swift

    public var value: BindingTarget<Double>
  • Sets stepper’s minimum value.

    Declaration

    Swift

    public var minimumValue: BindingTarget<Double>
  • Sets stepper’s maximum value.

    Declaration

    Swift

    public var maximumValue: BindingTarget<Double>
  • A signal of double values emitted by the stepper upon each user’s interaction.

    Declaration

    Swift

    public var values: Signal<Double, NoError>
  • The action to be triggered when the switch is changed. It also controls the enabled state of the switch

    Declaration

    Swift

    public var toggled: CocoaAction<Base>?
  • Sets the on-off state of the switch.

    Declaration

    Swift

    public var isOn: BindingTarget<Bool>
  • A signal of on-off states in Bool emitted by the switch.

    Declaration

    Swift

    public var isOnValues: Signal<Bool, NoError>
  • Sets the badge value of the tab bar item.

    Declaration

    Swift

    public var badgeValue: BindingTarget<String?>
  • Sets the badge color of the tab bar item.

    Declaration

    Swift

    public var badgeColor: BindingTarget<UIColor?>
  • Undocumented

    Declaration

    Swift

    struct Reactive<Base>
  • Sets the text of the text field.

    Declaration

    Swift

    public var text: BindingTarget<String?>
  • A signal of text values emitted by the text field upon end of editing.

    Note

    To observe text values that change on all editing events, see continuousTextValues.

    Declaration

    Swift

    public var textValues: Signal<String?, NoError>
  • A signal of text values emitted by the text field upon any changes.

    Note

    To observe text values only when editing ends, see textValues.

    Declaration

    Swift

    public var continuousTextValues: Signal<String?, NoError>
  • Sets the attributed text of the text field.

    Declaration

    Swift

    public var attributedText: BindingTarget<NSAttributedString?>
  • Sets the textColor of the text field.

    Declaration

    Swift

    public var textColor: BindingTarget<UIColor>
  • A signal of attributed text values emitted by the text field upon end of editing.

    Note

    To observe attributed text values that change on all editing events, see continuousAttributedTextValues.

    Declaration

    Swift

    public var attributedTextValues: Signal<NSAttributedString?, NoError>
  • A signal of attributed text values emitted by the text field upon any changes.

    Note

    To observe attributed text values only when editing ends, see attributedTextValues.

    Declaration

    Swift

    public var continuousAttributedTextValues: Signal<NSAttributedString?, NoError>
  • Sets the secure text entry attribute on the text field.

    Declaration

    Swift

    public var isSecureTextEntry: BindingTarget<Bool>
  • Sets the text of the text view.

    Declaration

    Swift

    public var text: BindingTarget<String?>
  • A signal of text values emitted by the text view upon end of editing.

    Note

    To observe text values that change on all editing events, see continuousTextValues.

    Declaration

    Swift

    public var textValues: Signal<String?, NoError>
  • A signal of text values emitted by the text view upon any changes.

    Note

    To observe text values only when editing ends, see textValues.

    Declaration

    Swift

    public var continuousTextValues: Signal<String?, NoError>
  • Sets the attributed text of the text view.

    Declaration

    Swift

    public var attributedText: BindingTarget<NSAttributedString?>
  • A signal of attributed text values emitted by the text view upon end of editing.

    Note

    To observe attributed text values that change on all editing events, see continuousAttributedTextValues.

    Declaration

    Swift

    public var attributedTextValues: Signal<NSAttributedString?, NoError>
  • A signal of attributed text values emitted by the text view upon any changes.

    Note

    To observe text values only when editing ends, see attributedTextValues.

    Declaration

    Swift

    public var continuousAttributedTextValues: Signal<NSAttributedString?, NoError>
  • Sets the alpha value of the view.

    Declaration

    Swift

    public var alpha: BindingTarget<CGFloat>
  • Sets whether the view is hidden.

    Declaration

    Swift

    public var isHidden: BindingTarget<Bool>
  • Sets whether the view accepts user interactions.

    Declaration

    Swift

    public var isUserInteractionEnabled: BindingTarget<Bool>
  • Sets the background color of the view.

    Declaration

    Swift

    public var backgroundColor: BindingTarget<UIColor>
  • Sets if pitch is enabled for map.

    Declaration

    Swift

    struct Reactive<Base>
  • Sets if rotation is enabled for map.

    Declaration

    Swift

    struct Reactive<Base>
  • Sets the prompt of the navigation item.

    Declaration

    Swift

    struct Reactive<Base>