
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
TCAのReducerからスクロール位置を変更する - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
TCAのReducerからスクロール位置を変更する - Qiita
struct AppView: View { let store: Store<AppState, AppAction> let items = (1...100) var body: some... struct AppView: View { let store: Store<AppState, AppAction> let items = (1...100) var body: some View { WithViewStore(store) { viewStore in ScrollViewReader { scrollProxy in ZStack { ScrollView { ForEach(items, id: \.self) { Text("\($0)"); Divider() } } .onReceive(NotificationCenter.default.publisher(for: NSNotification.scrollUp)) { _ in scrollProxy.scrollTo(items.first!) } .onReceive(Notificatio