以下分別介紹 SwiftUI & UIKit 的做法。
struct ContentView: View { var body: some View { Image("book") .resizable() .scaledToFit() .frame(width: 300)…