Merge pull request #3906 from vincode-io/fix-about-view-icon

Make the About View use the actual application icon instead of a copy…
This commit is contained in:
Brent Simmons
2023-03-12 11:41:08 -07:00
committed by GitHub
4 changed files with 3 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "AppIcon-1024px 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "AppIcon-1024px.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -7,6 +7,7 @@
//
import SwiftUI
import RSCore
struct AboutView: View, LoadableAboutData {
@@ -35,9 +36,10 @@ struct AboutView: View, LoadableAboutData {
HStack {
Spacer()
VStack(alignment: .center, spacing: 8) {
Image("About")
Image(uiImage: RSImage.appIconImage!)
.resizable()
.frame(width: 75, height: 75)
.cornerRadius(11)
Text(Bundle.main.appName)
.font(.headline)