0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

TextField()と.onMove(perform:の併用時のバグについて

Posted at

宣伝

アプリ作っているので入れてみてください!!
よろしくお願いいたします!!

本題

以下が再現コードです。


  List{
                ForEach(0..<10) { index in
                    TextField("Section Name",text: $text)
                }
                .onMove(perform: { indices, newOffset in
                    //                    self.data.move(fromOffsets: indices, toOffset: newOffset)
                })
            }

このようなコードの場合だと、テキストフィールドを押した後に焦点が当たるまで、1秒ほどラグが発生します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?