[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 16/28: ScreenSize
From: |
gnunet |
Subject: |
[taler-taler-ios] 16/28: ScreenSize |
Date: |
Tue, 19 Sep 2023 03:44:35 +0200 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit f8cbf4d6f3e915c846485a729faf276ceef82593
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Sep 10 13:32:26 2023 +0200
ScreenSize
---
TalerWallet.xcodeproj/project.pbxproj | 6 ++++++
TalerWallet1/Helper/UIScreen+screenSize.swift | 11 +++++++++++
TalerWallet1/Views/Balances/BalanceRowView.swift | 2 +-
TalerWallet1/Views/HelperViews/LaunchAnimationView.swift | 2 +-
4 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/TalerWallet.xcodeproj/project.pbxproj
b/TalerWallet.xcodeproj/project.pbxproj
index c32f138..90da643 100644
--- a/TalerWallet.xcodeproj/project.pbxproj
+++ b/TalerWallet.xcodeproj/project.pbxproj
@@ -143,6 +143,8 @@
4E605D912AA8B407002FB9A7 /* Nunito-Black.ttf in Resources */ =
{isa = PBXBuildFile; fileRef = 4E605D8E2AA8B407002FB9A7 /* Nunito-Black.ttf */;
};
4E605D922AA8B407002FB9A7 /* Nunito-BlackItalic.ttf in Resources
*/ = {isa = PBXBuildFile; fileRef = 4E605D8F2AA8B407002FB9A7 /*
Nunito-BlackItalic.ttf */; };
4E605D932AA8B407002FB9A7 /* Nunito-BlackItalic.ttf in Resources
*/ = {isa = PBXBuildFile; fileRef = 4E605D8F2AA8B407002FB9A7 /*
Nunito-BlackItalic.ttf */; };
+ 4E605DAF2AADDD13002FB9A7 /* UIScreen+screenSize.swift in
Sources */ = {isa = PBXBuildFile; fileRef = 4E605DAE2AADDD13002FB9A7 /*
UIScreen+screenSize.swift */; };
+ 4E605DB02AADDD13002FB9A7 /* UIScreen+screenSize.swift in
Sources */ = {isa = PBXBuildFile; fileRef = 4E605DAE2AADDD13002FB9A7 /*
UIScreen+screenSize.swift */; };
4E6EDD852A3615BE0031D520 /* ManualDetails.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E6EDD842A3615BE0031D520 /* ManualDetails.swift
*/; };
4E6EDD872A363D8D0031D520 /* ListStyle.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E6EDD862A363D8D0031D520 /* ListStyle.swift */;
};
4E753A062A0952F8002D9328 /* DebugViewC.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E753A052A0952F7002D9328 /* DebugViewC.swift */;
};
@@ -301,6 +303,7 @@
4E5A88F62A3B9E5B00072618 /* WithdrawAcceptDone.swift */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift;
path = WithdrawAcceptDone.swift; sourceTree = "<group>"; };
4E605D8E2AA8B407002FB9A7 /* Nunito-Black.ttf */ = {isa =
PBXFileReference; lastKnownFileType = file; path = "Nunito-Black.ttf";
sourceTree = "<group>"; };
4E605D8F2AA8B407002FB9A7 /* Nunito-BlackItalic.ttf */ = {isa =
PBXFileReference; lastKnownFileType = file; path = "Nunito-BlackItalic.ttf";
sourceTree = "<group>"; };
+ 4E605DAE2AADDD13002FB9A7 /* UIScreen+screenSize.swift */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift;
path = "UIScreen+screenSize.swift"; sourceTree = "<group>"; };
4E6EDD842A3615BE0031D520 /* ManualDetails.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= ManualDetails.swift; sourceTree = "<group>"; };
4E6EDD862A363D8D0031D520 /* ListStyle.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= ListStyle.swift; sourceTree = "<group>"; };
4E753A042A08E720002D9328 /* transactions.json */ = {isa =
PBXFileReference; lastKnownFileType = text.json; path = transactions.json;
sourceTree = "<group>"; };
@@ -556,6 +559,7 @@
4E3EAE8B2AA0933C009F1BE8 /* Font+Taler.swift */,
4EB095082989CB7C0043A8A1 /*
View+dismissTop.swift */,
4E3B4BC62A429F2A00CC88B8 /*
View+Notification.swift */,
+ 4E605DAE2AADDD13002FB9A7 /*
UIScreen+screenSize.swift */,
4E363CBB2A237E0900D7E98C /* URL+id+iban.swift
*/,
4E9320422A14F6EA00A87B0E /* WalletColors.swift
*/,
4E8E25322A1CD39700A27BFA /*
EqualIconWidthDomain.swift */,
@@ -1017,6 +1021,7 @@
4E3EAE2E2A990778009F1BE8 /*
QRCodeDetailView.swift in Sources */,
4E3EAE2F2A990778009F1BE8 /*
TransactionsEmptyView.swift in Sources */,
4E3EAE302A990778009F1BE8 /*
UncompletedRowView.swift in Sources */,
+ 4E605DAF2AADDD13002FB9A7 /*
UIScreen+screenSize.swift in Sources */,
4E3EAE312A990778009F1BE8 /* SendAmount.swift in
Sources */,
4E3EAE332A990778009F1BE8 /*
EqualIconWidthDomain.swift in Sources */,
4E3EAE342A990778009F1BE8 /*
SuperScriptDigits.swift in Sources */,
@@ -1115,6 +1120,7 @@
4E5A88F52A38A4FD00072618 /*
QRCodeDetailView.swift in Sources */,
4E87C8732A31CB7F001C6406 /*
TransactionsEmptyView.swift in Sources */,
4E87C8752A34B411001C6406 /*
UncompletedRowView.swift in Sources */,
+ 4E605DB02AADDD13002FB9A7 /*
UIScreen+screenSize.swift in Sources */,
4E40E0BE29F25ABB00B85369 /* SendAmount.swift in
Sources */,
4E8E25332A1CD39700A27BFA /*
EqualIconWidthDomain.swift in Sources */,
4EBA563F2A7FD9390084948B /*
SuperScriptDigits.swift in Sources */,
diff --git a/TalerWallet1/Helper/UIScreen+screenSize.swift
b/TalerWallet1/Helper/UIScreen+screenSize.swift
new file mode 100644
index 0000000..3fe327e
--- /dev/null
+++ b/TalerWallet1/Helper/UIScreen+screenSize.swift
@@ -0,0 +1,11 @@
+/*
+ * This file is part of GNU Taler, ©2022-23 Taler Systems S.A.
+ * See LICENSE.md
+ */
+import SwiftUI
+
+extension UIScreen {
+ static let screenWidth = UIScreen.main.bounds.size.width
+ static let screenHeight = UIScreen.main.bounds.size.height
+ static let screenSize = UIScreen.main.bounds.size
+}
diff --git a/TalerWallet1/Views/Balances/BalanceRowView.swift
b/TalerWallet1/Views/Balances/BalanceRowView.swift
index 49a074a..06c1529 100644
--- a/TalerWallet1/Views/Balances/BalanceRowView.swift
+++ b/TalerWallet1/Views/Balances/BalanceRowView.swift
@@ -39,7 +39,7 @@ struct BalanceRowView: View {
func needVStack(_ amount: Amount) -> Bool {
// Sizes: 320 (SE), 375 (X, Xs, 12, 13 mini), 390 (12,13,14), 414
(Plus, Max), 428 (Pro Max)
- guard 350 < UIScreen.main.bounds.width else {return true} // always
for iPhone SE 1st Gen
+ guard 350 < UIScreen.screenWidth else {return true} // always for
iPhone SE 1st Gen
var count = amount.currencyStr.count
// print(sizeCategory)
switch sizeCategory {
diff --git a/TalerWallet1/Views/HelperViews/LaunchAnimationView.swift
b/TalerWallet1/Views/HelperViews/LaunchAnimationView.swift
index 761bf73..de4712d 100644
--- a/TalerWallet1/Views/HelperViews/LaunchAnimationView.swift
+++ b/TalerWallet1/Views/HelperViews/LaunchAnimationView.swift
@@ -9,7 +9,7 @@ struct LaunchAnimationView: View {
var body: some View {
ZStack {
Color(.systemGray6).ignoresSafeArea()
- RotatingTaler(size: (350 < UIScreen.main.bounds.width) ? 200 :
250, rotationEnabled: $rotationEnabled)
+ RotatingTaler(size: (350 < UIScreen.screenWidth) ? 200 : 250,
rotationEnabled: $rotationEnabled)
}
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 06/28: Black, (continued)
- [taler-taler-ios] 06/28: Black, gnunet, 2023/09/18
- [taler-taler-ios] 14/28: ToSButton, gnunet, 2023/09/18
- [taler-taler-ios] 07/28: DebugView static font size, gnunet, 2023/09/18
- [taler-taler-ios] 12/28: Italic, gnunet, 2023/09/18
- [taler-taler-ios] 15/28: Speed up Sidebar, gnunet, 2023/09/18
- [taler-taler-ios] 11/28: AccessibleFont, gnunet, 2023/09/18
- [taler-taler-ios] 28/28: !!! Temporarily add back old cases to ExchangeTosStatus to be able to run with older wallet-core version !!!, gnunet, 2023/09/18
- [taler-taler-ios] 27/28: simplify log, gnunet, 2023/09/18
- [taler-taler-ios] 18/28: MainActor for Swift 6, gnunet, 2023/09/18
- [taler-taler-ios] 05/28: Terms of Service, gnunet, 2023/09/18
- [taler-taler-ios] 16/28: ScreenSize,
gnunet <=
- [taler-taler-ios] 22/28: CallStack, gnunet, 2023/09/18
- [taler-taler-ios] 23/28: logging, gnunet, 2023/09/18
- [taler-taler-ios] 26/28: fix warning, gnunet, 2023/09/18
- [taler-taler-ios] 21/28: test.taler.net now uses KUDOS (instead of TESTKUDOS), gnunet, 2023/09/18
- [taler-taler-ios] 19/28: Sendable for Swift 6, gnunet, 2023/09/18
- [taler-taler-ios] 25/28: simplify, gnunet, 2023/09/18
- [taler-taler-ios] 20/28: Wording: don't use "encrypt", gnunet, 2023/09/18
- [taler-taler-ios] 17/28: Bargraph shows the last transactions visually, gnunet, 2023/09/18
- [taler-taler-ios] 24/28: more CallStack debugging, gnunet, 2023/09/18