TypingIndicator
open class TypingIndicator : UIView, InputItem
A view designed to be placed in an InputStackView
as a Slack style typing indicator
-
A delegate to broadcast notifications from the
TypingIndicator
Declaration
Swift
open weak var delegate: TypingIndicatorDelegate?
-
Undocumented
Declaration
Swift
open override var intrinsicContentSize: CGSize { get }
-
An array of names/ids that will be parsed and displayed as the typing users
Declaration
Swift
public private(set) var usersTyping: [String]
-
Undocumented
Declaration
Swift
open let label: UILabel
-
A boarder line anchored to the bottom of the view
Declaration
Swift
open let separatorLine: SeparatorLine
-
Undocumented
Declaration
Swift
open var labelEdgeInsets: UIEdgeInsets { get }
-
Declaration
Swift
open var inputBarAccessoryView: InputBarAccessoryView?
-
Declaration
Swift
open var parentStackViewPosition: InputStackView.Position?
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Sets a new list of users who are typing and updates the label/UI
Declaration
Swift
open func setUsersTyping(to users: [String])
Parameters
users
The new group of names/ids to display as typing
-
Indicates when the current user is typing
Declaration
Swift
open func textViewDidChangeAction(with textView: InputTextView)
-
Does nothing
Declaration
Swift
open func keyboardSwipeGestureAction(with gesture: UISwipeGestureRecognizer)
-
Indicates that the current user has completed typing
Declaration
Swift
open func keyboardEditingEndsAction()
-
Does nothing
Declaration
Swift
open func keyboardEditingBeginsAction()