Structures
The following structures are available globally.
-
A custom parameter attribute that constructs animations from closures.
See moreDeclaration
Swift
@resultBuilder public struct ArgoKitAnimationBuilder
-
A custom parameter attribute that constructs animations from closures.
See moreDeclaration
Swift
@resultBuilder public struct ArgoKitAnimationsBuilder
-
Undocumented
See moreDeclaration
Swift
public struct ArgoKitNodeAlias
-
Wrapper of UIDatePicker. A control for the inputting of date and time values.
You can use a date picker to allow a user to enter either a point in time (calendar date, time value, or both) or a time interval (for example, for a timer). The date picker reports interactions to its associated target object. To add a date picker to your interface: Set the date picker mode at creation time. Supply additional configuration options such as minimum and maximum dates if required. Connect an action method to the date picker. Set up Auto Layout rules to govern the position of the date picker in your interface. You use a date picker only for handling the selection of times and dates. If you want to handle the selection of arbitrary items from a list, use a UIPickerView object.
See moreDatePicker{ date in print("\(date)") } .width(300) .height(100)
Declaration
Swift
public struct DatePicker : View
-
Wrapper of UIPickerView.
A view that uses a spinning-wheel or slot-machine metaphor to show one or more sets of values.
See morePickerView($pickerData) { item in Text(item).grow(1).textAlign(.center) } .width(100%) .height(50) .widthForComponent({ (component) -> Float in return 50 }) .rowHeightForComponent({ (component) -> Float in return 44 }) .didSelectRow({ (text, row, component) in // Did select action })
Declaration
Swift
public struct PickerView<T> : View
-
Wrapper of UIProgressView A view that depicts the progress of a task over time.
The UIProgressView class provides properties for managing the style of the progress bar and for getting and setting values that are pinned to the progress of a task. For an indeterminate progress indicator—or, informally, a “spinner”—use an instance of the UIActivityIndicatorView class.
See moreProgressView(0.5) .width(100) .height(10) .backgroundColor(.brown)
Declaration
Swift
public struct ProgressView : View
-
The View Representing of text,is implemented based on UILabel.
See moreText("content..") .font(size: 25) .textColor(.white) .lineLimit(0) .lineSpacing(10) .backgroundColor(.orange)
Declaration
Swift
public struct Text : TextProtocol
-
Wrapper of UILongPressGestureRecognizer A discrete gesture recognizer that interprets long-press gestures.
See moreLongPressGesture(numberOfTaps: 1, numberOfTouches: 1, minimumPressDuration: 0.5, allowableMovement: 10) { longPress in // long press action }
Declaration
Swift
public struct LongPressGesture : Gesture
-
Wrapper of UIPanGestureRecognizer A discrete gesture recognizer that interprets panning gestures.
See morePanGesture(minimumNumberOfTouches: 1, maximumNumberOfTouches: 10) { pan in // pan action } .onBegan { (pan, location, velocity, direction) in // on began action } .onMoved { (pan, location, velocity) in // on moved acton } .onEnded { (pan, location, velocity) in // on ended action } .onCancelled { (pan, location, velocity) in // on cancelled action } .enableDragView(true)
Declaration
Swift
public struct PanGesture : Gesture