ProgressView
確定または不確定のネイティブ SwiftUI 進捗インジケーターです。
#インポート
github.com/egoist/quickgui/go/ui から ui をインポートします。
import (
"github.com/egoist/quickgui/go/ui"
)#使い方
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 リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
SwiftUI.ProgressView
ソースを見るui.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)ソースを見るValueany—
The current controlled value. Update application state from the change callback to accept a new value.
anyソースを見る