txtodo

[DORMANT] a minimalist todo list app inspired by jeff huang
git clone git://git.figbert.com/txtodo.git
Log | Files | Refs | README

commit 0ec9003cbf33bd51776a0605bca43e73feede6e7
parent 0ed525b629e49aad781f8e20d1d0bde5c59f3e9a
Author: FIGBERT <figbert@figbert.com>
Date:   Mon, 16 Nov 2020 21:15:05 -0800

Add donation view with Liberapay link

Diffstat:
AShared/Settings Views/DonationSection.swift | 25+++++++++++++++++++++++++
MiOS/SettingsSheet.swift | 2++
MmacOS/SettingsView.swift | 5+++++
Mtxtodo.xcodeproj/project.pbxproj | 6++++++
4 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/Shared/Settings Views/DonationSection.swift b/Shared/Settings Views/DonationSection.swift @@ -0,0 +1,25 @@ +// +// DonationSection.swift +// txtodo +// +// Created by FIGBERT on 11/16/20. +// + +import SwiftUI + +struct DonationSection: View { + var body: some View { + VStack { + Text("if you enjoy txtodo, please consider supporting its development") + .multilineTextAlignment(.center) + .padding() + Link(destination: URL(string: "https://liberapay.com/FIGBERT/")!) { Text("donate on liberapay") } + } + } +} + +struct DonationSection_Previews: PreviewProvider { + static var previews: some View { + DonationSection() + } +} diff --git a/iOS/SettingsSheet.swift b/iOS/SettingsSheet.swift @@ -15,6 +15,8 @@ struct SettingsSheet: View { .padding() Form { NotificationSection() + DonationSection() + .padding(.bottom) } .listStyle(GroupedListStyle()) } diff --git a/macOS/SettingsView.swift b/macOS/SettingsView.swift @@ -26,6 +26,11 @@ struct SettingsView: View { Text("notifications") Image(systemName: "app.badge") } + DonationSection() + .tabItem { + Text("tip jar") + Image(systemName: "creditcard") + } } .frame(width: 300, height: 150) } diff --git a/txtodo.xcodeproj/project.pbxproj b/txtodo.xcodeproj/project.pbxproj @@ -39,6 +39,8 @@ 3ABD6A8924E0AD7900B22F4B /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3ABD6A8824E0AD7900B22F4B /* CloudKit.framework */; }; 3ABD6A9024E0DB1B00B22F4B /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3ABD6A9324E0DB1B00B22F4B /* Localizable.strings */; }; 3ABD6A9124E0DB1B00B22F4B /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3ABD6A9324E0DB1B00B22F4B /* Localizable.strings */; }; + 3AD708DB256392CE00809259 /* DonationSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AD708DA256392CE00809259 /* DonationSection.swift */; }; + 3AD708DC256392CE00809259 /* DonationSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AD708DA256392CE00809259 /* DonationSection.swift */; }; 3ADE061524DFCF1E000C4289 /* HomeHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3ADE061424DFCEFE000C4289 /* HomeHeaderView.swift */; }; 3AE1AE1E24DCE6D7005D88E2 /* MenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AE1AE1D24DCE6D7005D88E2 /* MenuView.swift */; }; 3AE1AE2024DCECCC005D88E2 /* SettingsSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AE1AE1F24DCECCC005D88E2 /* SettingsSheet.swift */; }; @@ -78,6 +80,7 @@ 3ABD6A8824E0AD7900B22F4B /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; }; 3ABD6A9224E0DB1B00B22F4B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; }; 3ABD6A9424E0DB5800B22F4B /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/Localizable.strings; sourceTree = "<group>"; }; + 3AD708DA256392CE00809259 /* DonationSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DonationSection.swift; sourceTree = "<group>"; }; 3ADE061424DFCEFE000C4289 /* HomeHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeHeaderView.swift; sourceTree = "<group>"; }; 3AE1AE1D24DCE6D7005D88E2 /* MenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuView.swift; sourceTree = "<group>"; }; 3AE1AE1F24DCECCC005D88E2 /* SettingsSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsSheet.swift; sourceTree = "<group>"; }; @@ -197,6 +200,7 @@ isa = PBXGroup; children = ( 3AE1AE2624DD2228005D88E2 /* NotificationSection.swift */, + 3AD708DA256392CE00809259 /* DonationSection.swift */, ); path = "Settings Views"; sourceTree = "<group>"; @@ -313,6 +317,7 @@ 3A00ABE624CF7B3C0022FCCE /* ContentView.swift in Sources */, 3AE1AE2724DD2228005D88E2 /* NotificationSection.swift in Sources */, 3AE1AE2A24DD27BB005D88E2 /* FrameModifier.swift in Sources */, + 3AD708DB256392CE00809259 /* DonationSection.swift in Sources */, 3A74457624E349B600788A32 /* DevicePaddingModifiers.swift in Sources */, 3A5AC67A24D0D24000DD482F /* SectionLabel.swift in Sources */, 3AE1AE1E24DCE6D7005D88E2 /* MenuView.swift in Sources */, @@ -329,6 +334,7 @@ buildActionMask = 2147483647; files = ( 3A74457124E33C6700788A32 /* TaskView.swift in Sources */, + 3AD708DC256392CE00809259 /* DonationSection.swift in Sources */, 3A00ABFD24CF84110022FCCE /* Task+CoreDataClass.swift in Sources */, 3A00ABF924CF82A50022FCCE /* txtodo.xcdatamodeld in Sources */, 3AA0D6C924D8BCBA0052ADC8 /* AddTask.swift in Sources */,