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