Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60f4039013 | ||
|
|
125c489881 | ||
|
|
d75873fa30 | ||
|
|
3095bd106a | ||
|
|
d0c286e7c8 |
@@ -765,7 +765,7 @@
|
||||
CODE_SIGNING_ALLOWED = NO;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
@@ -779,7 +779,7 @@
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 0.0.1;
|
||||
MARKETING_VERSION = 0.0.2;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
@@ -852,7 +852,7 @@
|
||||
CODE_SIGNING_ALLOWED = NO;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
@@ -872,7 +872,7 @@
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 0.0.1;
|
||||
MARKETING_VERSION = 0.0.2;
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
|
||||
@@ -87,9 +87,25 @@ public struct ContentView: View {
|
||||
}
|
||||
|
||||
Section("Intelligence") {
|
||||
Label("Alerts & Notifications", systemImage: "bell.badge")
|
||||
// Custom row instead of .badge() — a badge applied after .tag
|
||||
// detaches the tag from the list row and makes it unselectable.
|
||||
Label {
|
||||
HStack {
|
||||
Text("Alerts & Notifications")
|
||||
Spacer()
|
||||
if !store.alertEngine.activeAlerts.isEmpty {
|
||||
Text("\(store.alertEngine.activeAlerts.count)")
|
||||
.font(.caption2.weight(.semibold))
|
||||
.padding(.horizontal, 6)
|
||||
.padding(.vertical, 2)
|
||||
.background(Color.red.opacity(0.85), in: Capsule())
|
||||
.foregroundStyle(.white)
|
||||
}
|
||||
}
|
||||
} icon: {
|
||||
Image(systemName: "bell.badge")
|
||||
}
|
||||
.tag("Alerts")
|
||||
.badge(store.alertEngine.activeAlerts.isEmpty ? nil : Text("\(store.alertEngine.activeAlerts.count)"))
|
||||
}
|
||||
}
|
||||
.listStyle(.sidebar)
|
||||
|
||||
+2
-2
@@ -16,8 +16,8 @@ settings:
|
||||
CLANG_ENABLE_OBJC_ARC: YES
|
||||
CLANG_ENABLE_MODULES: YES
|
||||
GENERATE_INFOPLIST_FILE: YES
|
||||
MARKETING_VERSION: "0.0.1"
|
||||
CURRENT_PROJECT_VERSION: "1"
|
||||
MARKETING_VERSION: "0.0.2"
|
||||
CURRENT_PROJECT_VERSION: "2"
|
||||
CODE_SIGNING_ALLOWED: NO
|
||||
CODE_SIGN_IDENTITY: ""
|
||||
GCC_C_LANGUAGE_STANDARD: "gnu17"
|
||||
|
||||
Reference in New Issue
Block a user