ProgressView
A determinate or indeterminate native SwiftUI progress indicator.
#Import
Import ui from github.com/egoist/quickgui/go/ui.
import (
"github.com/egoist/quickgui/go/ui"
)#Usage
func SwiftUiProgressViewExample() *native.Node {
return ui.SwiftUI.Host(
ui.SwiftUIHostProps{MatchContents: true},
func() *native.Node {
return ui.SwiftUI.ProgressView(ui.SwiftUIProgressViewProps{
Value: 0.4,
Total: 1,
Label: "Uploading",
})
},
)
}#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
SwiftUI.ProgressView
View sourceui.SwiftUI.ProgressView(props SwiftUIProgressViewProps) *native.NodeTestIDany—
Modifiersany—
Reffunc(*native.Node)—
Receives the retained native node after construction. Keep imperative work in event or lifecycle callbacks.
func(*native.Node)View sourceValueany—
The current controlled value. Update application state from the change callback to accept a new value.
anyView source