はじめに
個人のメモ程度の出来なのであまり参考にしないで下さい.
環境
Xcode:11.2.1
Swift:5.1.2
2019/11
part1
XcodeでImage View
と検索して,Viewに乗せる.
part2
必要な制約を付ける.
Width=120,Height=120,センターに配置.
part3
XcodeでAssets.xcassets
に画像をドラッグ・ドロップ
part4
UIImageViewを選択した状態で,Attributes inspector
のImage
を先ほどAssets.xcassets
にドラッグ・ドロップした画像を選択する.
part5
UIImageViewを選択した状態で,Attributes inspector
のAlpha
も任意に設定する.
part6
ビルドして画像が表示されたらOK.