From a11510d6fa8fb248501e6dc0efb6cbe2949c7bd1 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Fri, 31 Jul 2026 21:12:08 +0700 Subject: [PATCH] fix macfeatures --- Balance/BalanceMac/MacFeatures.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Balance/BalanceMac/MacFeatures.swift b/Balance/BalanceMac/MacFeatures.swift index 2f70fd5..ff627d6 100644 --- a/Balance/BalanceMac/MacFeatures.swift +++ b/Balance/BalanceMac/MacFeatures.swift @@ -313,6 +313,10 @@ struct MacSettingsView: View { @AppStorage("currencyCode") private var currencyCode = SupportedCurrency.RUB.rawValue @AppStorage("appTheme") private var appTheme = AppTheme.system.rawValue + private var exportDocument: CSVDocument { + CSVDocument(transactions: transactions) + } + var body: some View { Form { Section("Отображение") { @@ -329,7 +333,10 @@ struct MacSettingsView: View { } label: { Label("Сервер и синхронизация", systemImage: "server.rack") } - ShareLink(item: CSVDocument(transactions: transactions)) { + ShareLink(item: exportDocument, preview: SharePreview( + "Операции", + image: Image(systemName: "tablecells") + )) { Label("Экспортировать CSV", systemImage: "square.and.arrow.up") } .disabled(transactions.isEmpty)