minor changes

This commit is contained in:
neon443
2025-03-24 19:14:35 +00:00
parent ccf27536a4
commit 30d2a1a396
5 changed files with 175 additions and 166 deletions

View File

@@ -376,6 +376,10 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-Xlinker",
"-interposable",
);
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
}; };
@@ -464,6 +468,10 @@
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13; MACOSX_DEPLOYMENT_TARGET = 13;
MARKETING_VERSION = 2.0; MARKETING_VERSION = 2.0;
OTHER_LDFLAGS = (
"-Xlinker",
"-interposable",
);
PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFuture; PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFuture;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto; SDKROOT = auto;
@@ -506,6 +514,7 @@
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13; MACOSX_DEPLOYMENT_TARGET = 13;
MARKETING_VERSION = 2.0; MARKETING_VERSION = 2.0;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFuture; PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFuture;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto; SDKROOT = auto;
@@ -538,6 +547,10 @@
"@executable_path/../../Frameworks", "@executable_path/../../Frameworks",
); );
MARKETING_VERSION = 2.0; MARKETING_VERSION = 2.0;
OTHER_LDFLAGS = (
"-Xlinker",
"-interposable",
);
PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFuture.NearFutureWidgets; PRODUCT_BUNDLE_IDENTIFIER = dev.neon443.NearFuture.NearFutureWidgets;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos; SDKROOT = iphoneos;

View File

@@ -52,15 +52,6 @@
symbolName = "disable" symbolName = "disable"
moduleName = ""> moduleName = "">
<Locations> <Locations>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 6a27c681eabcc1c6"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[NSGarbageCollector disable]"
moduleName = "Foundation"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 6896a8ccc1cbbf4" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 6896a8ccc1cbbf4"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -70,42 +61,6 @@
moduleName = "Combine" moduleName = "Combine"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - e677de259d751566"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "Security::CodeSigning::PolicyEngine::disable(void const*, unsigned int, unsigned long long, __CFDictionary const*, bool)"
moduleName = "Security"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 1ef70efdf996008b"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "kd_precinct_pointer_server::disable()"
moduleName = "libJP2.dylib"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - c5a6a63536a5f602"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "OpenGLCurveEvaluator::disable(int)"
moduleName = "libGLU.dylib"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 993de639c691fd54"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "OpenGLSurfaceEvaluator::disable(int)"
moduleName = "libGLU.dylib"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 3d6765b6178f5059" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 3d6765b6178f5059"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -115,24 +70,6 @@
moduleName = "ExtensionFoundation" moduleName = "ExtensionFoundation"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 6cbd47e179778bf1"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[BWMemoryPool disable]"
moduleName = "CMCapture"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 64631a9688dd1733"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "mlir::detail::RecoveryReproducerContext::disable()"
moduleName = "ANECompiler"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8161317e462ef314" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8161317e462ef314"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -142,51 +79,6 @@
moduleName = "MetalPerformanceShadersGraph" moduleName = "MetalPerformanceShadersGraph"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 19413fb9178b5401"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "CoreAudio.AudioHardwareBox.disable() throws -&gt; ()"
moduleName = "libswiftCoreAudio.dylib"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 4e7018357b464219"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::JSWebExtensionAPIAction::disable(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - ed1dc064b7d56449"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::InspectorBrowserAgent::disable()"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8c7ce8a2ca95b7c1"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::RemoteGraphicsContextGLProxy::disable(unsigned int)"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 85346bbe96bb9335"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::WebExtensionAPIAction::disable(double, WTF::Ref&lt;WebKit::WebExtensionCallbackHandler, WTF::RawPtrTraits&lt;WebKit::WebExtensionCallbackHandler&gt;, WTF::DefaultRefDerefTraits&lt;WebKit::WebExtensionCallbackHandler&gt;&gt;&amp;&amp;, NSString* __autoreleasing*)"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 828784d99bad6ae0" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 828784d99bad6ae0"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -403,15 +295,6 @@
moduleName = "JavaScriptCore" moduleName = "JavaScriptCore"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 788c76a375723d4e"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebCore::AudioNodeOutput::disable()"
moduleName = "WebCore"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - d3a893aeaaf3c28b" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - d3a893aeaaf3c28b"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -583,33 +466,6 @@
moduleName = "WebCore" moduleName = "WebCore"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 1c348fa5c1f03ed0"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[WBSAppLink disable]"
moduleName = "SafariSharedUI"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - edd634addac7362a"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[CBSBIM disable]"
moduleName = "CoreBrightness"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 64782c303926d1db"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[CBThermalBrightnessCap disable]"
moduleName = "CoreBrightness"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8fb25ebca0871f31" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8fb25ebca0871f31"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -655,6 +511,51 @@
moduleName = "DataAccessExpress" moduleName = "DataAccessExpress"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 921ff423092fb558"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "kd_precinct_pointer_server::disable()"
moduleName = "ImageIO"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 4db6a03f184a5171"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[MCTimerContext disable]"
moduleName = "ManagedConfiguration"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 895c3b28d3b0be6b"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebCore::AudioNodeInput::disable(WebCore::AudioNodeOutput*)"
moduleName = "WebCore"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8e113a16851df014"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "SpectralOutput::disable()"
moduleName = "ShazamKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8a37ac5636f777a"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "+[SpeakCorrections disable]"
moduleName = "AccessibilitySettingsLoader"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 6053f828b37b7463" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 6053f828b37b7463"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -664,6 +565,42 @@
moduleName = "AXMediaUtilities" moduleName = "AXMediaUtilities"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 4e7018357b464219"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::JSWebExtensionAPIAction::disable(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - ed1dc064b7d56449"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::InspectorBrowserAgent::disable()"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 8c7ce8a2ca95b7c1"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::RemoteGraphicsContextGLProxy::disable(unsigned int)"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 85346bbe96bb9335"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "WebKit::WebExtensionAPIAction::disable(double, WTF::Ref&lt;WebKit::WebExtensionCallbackHandler, WTF::RawPtrTraits&lt;WebKit::WebExtensionCallbackHandler&gt;, WTF::DefaultRefDerefTraits&lt;WebKit::WebExtensionCallbackHandler&gt;&gt;&amp;&amp;, NSString* __autoreleasing*)"
moduleName = "WebKit"
usesParentBreakpointCondition = "Yes">
</Location>
<Location <Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 5eb2eb549c2daff5" uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 5eb2eb549c2daff5"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
@@ -673,6 +610,42 @@
moduleName = "CoreMediaStream" moduleName = "CoreMediaStream"
usesParentBreakpointCondition = "Yes"> usesParentBreakpointCondition = "Yes">
</Location> </Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - d2467d35396f9097"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[SFExtensionWrapper disable]"
moduleName = "MobileSafari"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 9361a2432fecca62"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[SFContentBlockerExtensionWrapper disable]"
moduleName = "MobileSafari"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - d23dcba3d53d98ae"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[SFWebExtensionExtensionWrapper disable]"
moduleName = "MobileSafari"
usesParentBreakpointCondition = "Yes">
</Location>
<Location
uuid = "A2F7727A-BA9E-4A62-BE81-62B5BB097DD3 - 1c348fa5c1f03ed0"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[WBSAppLink disable]"
moduleName = "SafariSharedUI"
usesParentBreakpointCondition = "Yes">
</Location>
</Locations> </Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>

View File

@@ -66,6 +66,7 @@ struct AddEventView: View {
.padding(.trailing, eventName.isEmpty ? 0 : 30) .padding(.trailing, eventName.isEmpty ? 0 : 30)
.animation(.spring, value: eventName) .animation(.spring, value: eventName)
.focused($focusedField, equals: Field.Name) .focused($focusedField, equals: Field.Name)
.submitLabel(.next)
.onSubmit { .onSubmit {
focusedField = .Description focusedField = .Description
} }
@@ -80,6 +81,7 @@ struct AddEventView: View {
.padding(.trailing, eventDescription.isEmpty ? 0 : 30) .padding(.trailing, eventDescription.isEmpty ? 0 : 30)
.animation(.spring, value: eventDescription) .animation(.spring, value: eventDescription)
.focused($focusedField, equals: Field.Description) .focused($focusedField, equals: Field.Description)
.submitLabel(.done)
.onSubmit { .onSubmit {
focusedField = nil focusedField = nil
} }

View File

@@ -8,6 +8,10 @@
import SwiftUI import SwiftUI
import SwiftData import SwiftData
enum Field {
case Search
}
struct ContentView: View { struct ContentView: View {
@StateObject private var viewModel = EventViewModel() @StateObject private var viewModel = EventViewModel()
@State private var eventName = "" @State private var eventName = ""
@@ -62,10 +66,15 @@ struct ContentView: View {
} }
@State var showSettings: Bool = false @State var showSettings: Bool = false
@FocusState private var focusedField: Field? var noEvents: Bool {
private enum Field { if viewModel.events.count == 0 {
case Search return true
} else {
return false
}
} }
@FocusState private var focusedField: Field?
var body: some View { var body: some View {
TabView { TabView {
@@ -86,6 +95,7 @@ struct ContentView: View {
.onSubmit { .onSubmit {
focusedField = nil focusedField = nil
} }
.submitLabel(.done)
MagicClearButton(text: $searchInput) MagicClearButton(text: $searchInput)
} }
.padding(.horizontal) .padding(.horizontal)
@@ -95,25 +105,10 @@ struct ContentView: View {
} }
.onDelete(perform: viewModel.removeEvent) .onDelete(perform: viewModel.removeEvent)
if !searchInput.isEmpty { if !searchInput.isEmpty {
HStack { SearchHelp(
Image(systemName: "questionmark.square.dashed") searchInput: $searchInput,
.resizable() focusedField: _focusedField
.scaledToFit() )
.frame(width: 30, height: 30)
.padding(.trailing)
Text("Can't find what you're looking for?")
}
Text("Tip: The Search bar searches event names and descriptions")
Button() {
searchInput = ""
focusedField = nil
} label: {
HStack {
Image(systemName: "xmark")
Text("Clear Filters")
}
.foregroundStyle(Color.accentColor)
}
} }
} }
} }
@@ -210,6 +205,32 @@ struct EventListView: View {
} }
} }
struct SearchHelp: View {
@Binding var searchInput: String
@FocusState var focusedField: Field?
var body: some View {
HStack {
Image(systemName: "questionmark.square.dashed")
.resizable()
.scaledToFit()
.frame(width: 30, height: 30)
.padding(.trailing)
Text("Can't find what you're looking for?")
}
Text("Tip: The Search bar searches event names and descriptions")
Button() {
searchInput = ""
focusedField = nil
} label: {
HStack {
Image(systemName: "xmark")
Text("Clear Filters")
}
.foregroundStyle(Color.accentColor)
}
}
}
#Preview { #Preview {
ContentView() ContentView()
} }