📜  如何在 swift 代码示例中添加图像

📅  最后修改于: 2022-03-11 15:01:03.694000             🧑  作者: Mango

代码示例1
//The first step is to rename the image you want to add into your xcode project
//Then, drag the picture to the Assets.xcassests folder.
//Next, use the Image struct and init(name) to display the picture

//For example, if your picture in the Assets.xcassests folder is named daddy, then to get the picture, use

Image("daddy")

//There are more modifiers to the Image but that will not be discussed here