LoginSignup
16
8

More than 3 years have passed since last update.

SF symbolsの使い方

Last updated at Posted at 2020-05-29

iOSでよく使われる画像を使いたい

clip_image.jpg test1.png test2.png

上のような画像が使いたい時、あると思います。
これらの画像はそれぞれ
Image(systemName: "paperclip")
Image(systemName: "folder.fill")
Image(systemName: "square.and.arrow.up")
で表示することができます。(SwiftUIを想定しています)

App公式サイトにある download the SF Symbols app をクリックしダウンロードをし表示される手続きに従うと、Launchpadにアプリが追加されます。
スクリーンショット 2020-05-29 16.11.15.jpg

このアプリでは上で表示したpaperclipなどの名前とその画像が表示されます。
スクリーンショット 2020-05-29 16.14.42.jpg

あとは使いたい画像を選択し、Image(systemName: "")のようにすれば、画像を表示することができます。

16
8
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
16
8