0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SwiftUIのListで空白のSectionを作る

Posted at

はじめに

今回はSwiftUIのListを使う際に空白のSectionを作る方法を紹介します

本文

下記のようにすることでタイトル等を表示しないSectionを作ることができます。

Section(header: Color.clear.frame(height: 20))

最後に

自分は普段Androidエンジニアなのでheaderに対してColorを設定することができるのはすごく斬新で、発想にもなかったので少しハマりました。
どなたかのお役に立てれば幸いd

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?