/* Why the frame of an SF Symbol isn't encompassing its entire image? https://stackoverflow.com/a/63942841/5409815 This appears to be a bug that is now fixed in SwiftUI 2.0 (Xcode 12). Here is a workaround for SwiftUI 1.0 (Xcode 11). It uses UIImage(systemName:) to get the actual dimensions of the image, and then uses .aspectRatio(_:contentMode:) to set the correct aspect ratio. */importSwiftUI/// # 🌅 SystemImage/// SystemImage("heart.fill")publicstructSystemImage:View {// SF Symbol namelet name: String// public initpublicinit(_name: String) { self.name = name }// view bodypublicvar body: some View {// ⭐️ use UIImage to get the actual sizelet size =UIImage(systemName: name)!.sizereturnImage(systemName: name) .resizable()// set the correct aspect ratio for Image(systemName:) .aspectRatio(size, contentMode: .fit) }}