From 36ea668d7fc9070770973b0bc329f4319bf43cab Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 22 Apr 2026 01:20:47 -0500 Subject: feat(v2​.6​.0): refine ​UI, density, and usability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • add compact/comfortable density modes • implement collapsible sections and sticky summary header • improve visual status indicators and copy actions • refine watchlist and history UX with swipe actions • reorganize settings and improve empty states • add subtle animations and accessibility improvements --- DomainDig/LookupRuntime.swift | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'DomainDig/LookupRuntime.swift') diff --git a/DomainDig/LookupRuntime.swift b/DomainDig/LookupRuntime.swift index b70a134..08ea122 100644 --- a/DomainDig/LookupRuntime.swift +++ b/DomainDig/LookupRuntime.swift @@ -58,6 +58,13 @@ actor LookupRuntime { private var inFlight: [RequestKey: Task] = [:] private var nextAllowedAt: [RateLimitBucket: Date] = [:] + func clearCache() { + cache.removeAll() + inFlight.values.forEach { $0.cancel() } + inFlight.removeAll() + nextAllowedAt.removeAll() + } + func dns(domain: String) async -> CachedLookupResult> { await execute( key: .domain(domain, .dns), -- cgit v1.2.3