tweak aboutView
This commit is contained in:
@@ -17,9 +17,10 @@ public struct AboutView: View {
|
||||
VStack(spacing: 10) {
|
||||
// App 图标
|
||||
Image(uiImage: UIImage(named: "AppIconMedium") ?? UIImage())
|
||||
.resizable()
|
||||
.frame(width: 80, height: 80)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 36))
|
||||
// .resizable()
|
||||
.resizable(capInsets:EdgeInsets(top: 3.5, leading: 3.5, bottom: 3.5, trailing: 3.5))
|
||||
.frame(width: 100, height: 100)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 28))
|
||||
|
||||
// App 名称
|
||||
Text(Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? "App Name")
|
||||
|
||||
@@ -28,7 +28,7 @@ import SwiftUI
|
||||
])
|
||||
|
||||
// 🎯 设置弹窗大小
|
||||
preferredContentSize = CGSize(width: 600, height: 450)
|
||||
preferredContentSize = CGSize(width: 530, height: 450)
|
||||
//preferredContentSize = CGSize(width:150, height:120 )
|
||||
|
||||
// ⚠️ 一定要设置以下样式才会生效 preferredContentSize
|
||||
|
||||
@@ -2115,7 +2115,7 @@ static NSMutableSet* hostList;
|
||||
if(gesture.state == UIGestureRecognizerStateBegan){
|
||||
if(locationInView.x < 30) {
|
||||
snapshot = [[UIView alloc] init];
|
||||
snapshot.backgroundColor = [ThemeManager appPrimaryColor];
|
||||
snapshot.backgroundColor = [UIColor systemBlueColor];
|
||||
screenHeight = [UIScreen mainScreen].bounds.size.height;
|
||||
snapshot.frame = CGRectMake(locationInSuperView.x,0, 2, screenHeight);
|
||||
[self.revealViewController.view addSubview:snapshot];
|
||||
|
||||
Reference in New Issue
Block a user