From 8ea2bec1a54b94517c65e3f44f70627481922813 Mon Sep 17 00:00:00 2001 From: Serena Date: Wed, 26 Apr 2023 22:22:52 +0300 Subject: [PATCH] fix share menu --- .github/workflows/build.yml | 4 +- RootHelper/Commands.swift | 2 +- RootHelper/Extensions.swift | 2 +- RootHelper/main.swift | 2 +- Santander.xcodeproj/project.pbxproj | 12 ++- Santander/AppDelegate.swift | 2 +- .../Other/BaseLayoutAnchorSupporting.swift | 2 +- Santander/Other/DiffableDataSourceItem.swift | 2 +- Santander/Other/DirectoryMonitor.swift | 4 +- Santander/Other/Extensions.swift | 2 +- Santander/Other/GoToItem.swift | 2 +- Santander/Other/ImageMetadata.swift | 2 +- Santander/Other/LoadingValueState.swift | 2 +- Santander/Other/Path.swift | 2 +- Santander/Other/PathMetadata.swift | 2 +- Santander/Other/PathTransitioning.swift | 2 +- Santander/Other/PathType.swift | 2 +- Santander/Other/PathsSortMethods.swift | 2 +- Santander/Other/Permissions.swift | 2 +- Santander/Other/Preferences/Storage.swift | 2 +- .../Other/Preferences/UserPreferences.swift | 2 +- Santander/Other/RootHelper.swift | 4 +- Santander/SceneDelegate.swift | 4 +- Santander/UI/AppInfoViewController.swift | 2 +- .../AssetCatalog/AssetCatalogCell.swift | 2 +- .../AssetCatalogDetailsView.swift | 2 +- .../AssetCatalogGridPreviewCell.swift | 2 +- .../AssetCatalogRenditionViewController.swift | 2 +- .../AssetCatalogSectionHeader.swift | 2 +- .../AssetCatalogSidebarListView.swift | 2 +- .../AssetCatalogViewController.swift | 2 +- .../Audio/AudioPlayerToolbarView.swift | 2 +- .../Audio/AudioPlayerViewController.swift | 2 +- .../BinaryExecutionViewController.swift | 2 +- Santander/UI/Editors/FileEditorType.swift | 2 +- .../Font/FontInformationViewController.swift | 2 +- .../Editors/Font/FontViewerController.swift | 2 +- .../ImageLocationEditorViewController.swift | 2 +- .../Image/ImageMetadataViewController.swift | 2 +- .../Editors/Image/ImageViewerController.swift | 2 +- .../SerializedArrayViewController.swift | 2 +- .../SerializedDocumentViewController.swift | 2 +- .../Serialized/SerializedItemType.swift | 2 +- .../SerializedItemViewController.swift | 2 +- .../TextEditor/KeyboardSearchView.swift | 4 +- .../TextEditor/KeyboardToolsView.swift | 4 +- ...extEditorThemeSettingsViewController.swift | 2 +- .../TextFileEditorViewController.swift | 2 +- Santander/UI/Editors/TextEditor/Themes.swift | 2 +- Santander/UI/FilePreviewDataSource.swift | 2 +- Santander/UI/Path/DragAndDrop.swift | 2 +- Santander/UI/Path/GoToViewController.swift | 76 +++++++++++++++++++ .../Path/PathGroupOwnerViewController.swift | 2 +- .../PathInformationTableViewController.swift | 2 +- .../UI/Path/PathListViewController.swift | 68 ++++++++++++++++- .../UI/Path/PathOperationViewController.swift | 2 +- .../Path/PathPermissionsViewController.swift | 2 +- .../Path/PathSidebarListViewController.swift | 3 +- Santander/UI/Path/RenamerTextField.swift | 39 ++++++++++ Santander/UI/Path/Search.swift | 2 +- Santander/UI/Path/ToolbarItems.swift | 2 +- .../UI/SettingsTableViewController.swift | 2 +- .../UI/TypeSelectionViewController.swift | 2 +- 63 files changed, 257 insertions(+), 69 deletions(-) create mode 100644 Santander/UI/Path/GoToViewController.swift create mode 100644 Santander/UI/Path/RenamerTextField.swift diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c10bda5..e245766 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - serena/root-helper-proper + - Antoine/root-helper-proper paths-ignore: - '**/*.md' - 'README.md' @@ -48,7 +48,7 @@ jobs: input: "${{ github.workspace }}/build/Santander.ipa" output: "${{ github.workspace }}/build/Santander.deb" entitlements: "${{ github.workspace }}/entitlements-TS.plist" - args: "--author Serena" + args: "--author Antoine" - name: Upload IPA uses: actions/upload-artifact@v3.1.0 diff --git a/RootHelper/Commands.swift b/RootHelper/Commands.swift index 667b6aa..7dc381b 100644 --- a/RootHelper/Commands.swift +++ b/RootHelper/Commands.swift @@ -2,7 +2,7 @@ // Commands.swift // RootHelper // -// Created by Serena on 10/11/2022 +// Created by Antoine on 10/11/2022 // import Foundation diff --git a/RootHelper/Extensions.swift b/RootHelper/Extensions.swift index bff1e65..b3bceb9 100644 --- a/RootHelper/Extensions.swift +++ b/RootHelper/Extensions.swift @@ -2,7 +2,7 @@ // Extensions.swift // RootHelper // -// Created by Serena on 10/11/2022 +// Created by Antoine on 10/11/2022 // diff --git a/RootHelper/main.swift b/RootHelper/main.swift index bf7712d..ab2aa7d 100644 --- a/RootHelper/main.swift +++ b/RootHelper/main.swift @@ -2,7 +2,7 @@ // main.swift // RootHelper // -// Created by Serena on 17/10/2022 +// Created by Antoine on 17/10/2022 // import ArgumentParser diff --git a/Santander.xcodeproj/project.pbxproj b/Santander.xcodeproj/project.pbxproj index e97d487..d739655 100644 --- a/Santander.xcodeproj/project.pbxproj +++ b/Santander.xcodeproj/project.pbxproj @@ -59,10 +59,12 @@ CE2D13DE291D8F8A0023F16D /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = CE2D13DD291D8F8A0023F16D /* ArgumentParser */; }; CE37904628DB44C300124029 /* AssetCatalogCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE37904528DB44C300124029 /* AssetCatalogCell.swift */; }; CE37904A28DB523500124029 /* AssetCatalogSectionHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE37904928DB523500124029 /* AssetCatalogSectionHeader.swift */; }; + CE4004A829F1DE9400F7470F /* RenamerTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4004A729F1DE9400F7470F /* RenamerTextField.swift */; }; CE41CDD0299695700090B616 /* Path.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41CDCF299695700090B616 /* Path.swift */; }; CE41CDD1299695700090B616 /* Path.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41CDCF299695700090B616 /* Path.swift */; }; CE42B204290ABB6400FD9AC9 /* AssetCatalogSidebarListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE42B203290ABB6400FD9AC9 /* AssetCatalogSidebarListView.swift */; }; CE42E24C291A920400187333 /* LoadingValueState.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE42E24B291A920400187333 /* LoadingValueState.swift */; }; + CE4765EE29F4783C0099E6A9 /* GoToViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4765ED29F4783C0099E6A9 /* GoToViewController.swift */; }; CE5DFE8328C7BC89003E1095 /* BinaryExecutionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE5DFE8228C7BC89003E1095 /* BinaryExecutionViewController.swift */; }; CE7228ED28E8188D00918C5F /* AssetCatalogRenditionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE7228EC28E8188D00918C5F /* AssetCatalogRenditionViewController.swift */; }; CE7E02E0290006C70046A7D4 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE7E02DE290006C70046A7D4 /* MobileCoreServices.framework */; }; @@ -154,9 +156,11 @@ CE37904528DB44C300124029 /* AssetCatalogCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssetCatalogCell.swift; sourceTree = ""; }; CE37904928DB523500124029 /* AssetCatalogSectionHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssetCatalogSectionHeader.swift; sourceTree = ""; }; CE3E8FC228FF24D3001B8FAA /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = ""; }; + CE4004A729F1DE9400F7470F /* RenamerTextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RenamerTextField.swift; sourceTree = ""; }; CE41CDCF299695700090B616 /* Path.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Path.swift; sourceTree = ""; }; CE42B203290ABB6400FD9AC9 /* AssetCatalogSidebarListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssetCatalogSidebarListView.swift; sourceTree = ""; }; CE42E24B291A920400187333 /* LoadingValueState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingValueState.swift; sourceTree = ""; }; + CE4765ED29F4783C0099E6A9 /* GoToViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoToViewController.swift; sourceTree = ""; }; CE5DFE8228C7BC89003E1095 /* BinaryExecutionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BinaryExecutionViewController.swift; sourceTree = ""; }; CE7228EC28E8188D00918C5F /* AssetCatalogRenditionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssetCatalogRenditionViewController.swift; sourceTree = ""; }; CE7E02DE290006C70046A7D4 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; @@ -347,6 +351,8 @@ isa = PBXGroup; children = ( 3789B5F328622E0D00058688 /* PathListViewController.swift */, + CE4004A729F1DE9400F7470F /* RenamerTextField.swift */, + CE4765ED29F4783C0099E6A9 /* GoToViewController.swift */, 37C6E0CF28673AFF00BDDA16 /* Search.swift */, 37177E4B289F12640025042E /* PathGroupOwnerViewController.swift */, 375CF896289C394E00BB7C60 /* ToolbarItems.swift */, @@ -526,6 +532,7 @@ CE42E24C291A920400187333 /* LoadingValueState.swift in Sources */, 374ECDCA2875F5350066E9DD /* AudioPlayerViewController.swift in Sources */, 37C6E0C52865CF7C00BDDA16 /* SettingsTableViewController.swift in Sources */, + CE4004A829F1DE9400F7470F /* RenamerTextField.swift in Sources */, 37C6E0CA28662C6800BDDA16 /* PathsSortMethods.swift in Sources */, 37934DB728707F4500D1248A /* TextFileEditorViewController.swift in Sources */, 3713292B28B74D34009E4AEA /* ImageLocationEditorViewController.swift in Sources */, @@ -543,6 +550,7 @@ CECF6EDA28C37F660080B805 /* FontViewerController.swift in Sources */, 374ECDC82875A3940066E9DD /* Storage.swift in Sources */, 3789B5F428622E0D00058688 /* PathListViewController.swift in Sources */, + CE4765EE29F4783C0099E6A9 /* GoToViewController.swift in Sources */, 3789B5E028622B7A00058688 /* AppDelegate.swift in Sources */, 37137F7828AED89F00E28069 /* SerializedArrayViewController.swift in Sources */, 3712D319286F7F2E00BCD034 /* TypeSelectionViewController.swift in Sources */, @@ -755,7 +763,7 @@ IOKit, ); OTHER_SWIFT_FLAGS = ""; - PRODUCT_BUNDLE_IDENTIFIER = com.serena.santanderfm; + PRODUCT_BUNDLE_IDENTIFIER = com.serena.santandermm; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_INCLUDE_PATHS = "$(SRCROOT)/Santander/Other/External/**"; @@ -794,7 +802,7 @@ IOKit, ); OTHER_SWIFT_FLAGS = ""; - PRODUCT_BUNDLE_IDENTIFIER = com.serena.santanderfm; + PRODUCT_BUNDLE_IDENTIFIER = com.serena.santandermm; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_INCLUDE_PATHS = "$(SRCROOT)/Santander/Other/External/**"; diff --git a/Santander/AppDelegate.swift b/Santander/AppDelegate.swift index 3637d1d..ee5fcb2 100644 --- a/Santander/AppDelegate.swift +++ b/Santander/AppDelegate.swift @@ -2,7 +2,7 @@ // AppDelegate.swift // Santander // -// Created by Serena on 21/06/2022 +// Created by Antoine on 21/06/2022 // diff --git a/Santander/Other/BaseLayoutAnchorSupporting.swift b/Santander/Other/BaseLayoutAnchorSupporting.swift index 11f4305..d20ff10 100644 --- a/Santander/Other/BaseLayoutAnchorSupporting.swift +++ b/Santander/Other/BaseLayoutAnchorSupporting.swift @@ -2,7 +2,7 @@ // BaseLayoutAnchorSupporting.swift // Santander // -// Created by Serena on 08/10/2022 +// Created by Antoine on 08/10/2022 // diff --git a/Santander/Other/DiffableDataSourceItem.swift b/Santander/Other/DiffableDataSourceItem.swift index 13c5f4a..e45396a 100644 --- a/Santander/Other/DiffableDataSourceItem.swift +++ b/Santander/Other/DiffableDataSourceItem.swift @@ -2,7 +2,7 @@ // DiffableDataSourceItem.swift // Santander // -// Created by Serena on 04/11/2022 +// Created by Antoine on 04/11/2022 // diff --git a/Santander/Other/DirectoryMonitor.swift b/Santander/Other/DirectoryMonitor.swift index 190da0a..eb383b0 100644 --- a/Santander/Other/DirectoryMonitor.swift +++ b/Santander/Other/DirectoryMonitor.swift @@ -2,9 +2,9 @@ // DirectoryMonitor.swift // Santander // -// Created by Serena on 27/06/2022 +// Created by Antoine on 27/06/2022 // -// Code originally written by Apple, modified for use by Serena A. +// Code originally written by Apple, modified for use by Antoine A. import Foundation diff --git a/Santander/Other/Extensions.swift b/Santander/Other/Extensions.swift index 8dbe66b..7b2e8e0 100644 --- a/Santander/Other/Extensions.swift +++ b/Santander/Other/Extensions.swift @@ -2,7 +2,7 @@ // Extensions.swift // Santander // -// Created by Serena on 21/06/2022 +// Created by Antoine on 21/06/2022 // // TODO: - Move all of this to other files, with separate files for each extension diff --git a/Santander/Other/GoToItem.swift b/Santander/Other/GoToItem.swift index 0658860..8a19fb7 100644 --- a/Santander/Other/GoToItem.swift +++ b/Santander/Other/GoToItem.swift @@ -2,7 +2,7 @@ // GoToItem.swift // Santander // -// Created by Serena on 24/10/2022 +// Created by Antoine on 24/10/2022 // diff --git a/Santander/Other/ImageMetadata.swift b/Santander/Other/ImageMetadata.swift index 413655d..249c732 100644 --- a/Santander/Other/ImageMetadata.swift +++ b/Santander/Other/ImageMetadata.swift @@ -2,7 +2,7 @@ // ImageMetadata.swift // Santander // -// Created by Serena on 24/08/2022. +// Created by Antoine on 24/08/2022. // import Foundation diff --git a/Santander/Other/LoadingValueState.swift b/Santander/Other/LoadingValueState.swift index ebb28de..f17e8f8 100644 --- a/Santander/Other/LoadingValueState.swift +++ b/Santander/Other/LoadingValueState.swift @@ -2,7 +2,7 @@ // LoadingValueState.swift // Santander // -// Created by Serena on 08/11/2022 +// Created by Antoine on 08/11/2022 // diff --git a/Santander/Other/Path.swift b/Santander/Other/Path.swift index 627be65..93aa667 100644 --- a/Santander/Other/Path.swift +++ b/Santander/Other/Path.swift @@ -2,7 +2,7 @@ // Path.swift // Santander // -// Created by Serena on 10/02/2023. +// Created by Antoine on 10/02/2023. // import UIKit diff --git a/Santander/Other/PathMetadata.swift b/Santander/Other/PathMetadata.swift index 9aa614f..6150aa0 100644 --- a/Santander/Other/PathMetadata.swift +++ b/Santander/Other/PathMetadata.swift @@ -2,7 +2,7 @@ // PathMetadata.swift // Santander // -// Created by Serena on 04/08/2022. +// Created by Antoine on 04/08/2022. // import Foundation diff --git a/Santander/Other/PathTransitioning.swift b/Santander/Other/PathTransitioning.swift index 24404a4..d97f375 100644 --- a/Santander/Other/PathTransitioning.swift +++ b/Santander/Other/PathTransitioning.swift @@ -2,7 +2,7 @@ // PathTransitioning.swift // Santander // -// Created by Serena on 12/10/2022 +// Created by Antoine on 12/10/2022 // diff --git a/Santander/Other/PathType.swift b/Santander/Other/PathType.swift index 42cbee9..779b82a 100644 --- a/Santander/Other/PathType.swift +++ b/Santander/Other/PathType.swift @@ -2,7 +2,7 @@ // PathType.swift // Santander // -// Created by Serena on 27/06/2022 +// Created by Antoine on 27/06/2022 // diff --git a/Santander/Other/PathsSortMethods.swift b/Santander/Other/PathsSortMethods.swift index b56a9bb..0dc9862 100644 --- a/Santander/Other/PathsSortMethods.swift +++ b/Santander/Other/PathsSortMethods.swift @@ -2,7 +2,7 @@ // PathsSortMethods.swift // Santander // -// Created by Serena on 24/06/2022 +// Created by Antoine on 24/06/2022 // diff --git a/Santander/Other/Permissions.swift b/Santander/Other/Permissions.swift index 6b5cdf3..2957700 100644 --- a/Santander/Other/Permissions.swift +++ b/Santander/Other/Permissions.swift @@ -2,7 +2,7 @@ // Permissions.swift // Santander // -// Created by Serena on 05/08/2022. +// Created by Antoine on 05/08/2022. // import Foundation diff --git a/Santander/Other/Preferences/Storage.swift b/Santander/Other/Preferences/Storage.swift index 5cefab7..4358169 100644 --- a/Santander/Other/Preferences/Storage.swift +++ b/Santander/Other/Preferences/Storage.swift @@ -2,7 +2,7 @@ // Storage.swift // Santander // -// Created by Serena on 06/07/2022 +// Created by Antoine on 06/07/2022 // diff --git a/Santander/Other/Preferences/UserPreferences.swift b/Santander/Other/Preferences/UserPreferences.swift index 59a7d88..c1f0943 100644 --- a/Santander/Other/Preferences/UserPreferences.swift +++ b/Santander/Other/Preferences/UserPreferences.swift @@ -2,7 +2,7 @@ // UserPreferences.swift // Santander // -// Created by Serena on 22/06/2022 +// Created by Antoine on 22/06/2022 // diff --git a/Santander/Other/RootHelper.swift b/Santander/Other/RootHelper.swift index d52c61b..b36b6c8 100644 --- a/Santander/Other/RootHelper.swift +++ b/Santander/Other/RootHelper.swift @@ -2,7 +2,7 @@ // FSOperation.swift // Santander // -// Created by Serena on 15/09/2022 +// Created by Antoine on 15/09/2022 // @@ -144,7 +144,7 @@ struct RootConf: RootHelperConfiguration { let mutex = DispatchSemaphore(value: 0) - let readQueue = DispatchQueue(label: "com.serena.Santander.RootHelper", + let readQueue = DispatchQueue(label: "com.Antoine.Santander.RootHelper", qos: .userInitiated, attributes: .concurrent, autoreleaseFrequency: .inherit, diff --git a/Santander/SceneDelegate.swift b/Santander/SceneDelegate.swift index 7028775..6807228 100644 --- a/Santander/SceneDelegate.swift +++ b/Santander/SceneDelegate.swift @@ -2,7 +2,7 @@ // SceneDelegate.swift // Santander // -// Created by Serena on 21/06/2022 +// Created by Antoine on 21/06/2022 // @@ -17,7 +17,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { func performShortcut(_ shortcut: UIApplicationShortcutItem) { switch shortcut.type { - case "com.serena.santander.bookmarks": + case "com.Antoine.santander.bookmarks": let vc = UINavigationController(rootViewController: PathListViewController.bookmarks()) window?.rootViewController?.present(vc, animated: true) default: diff --git a/Santander/UI/AppInfoViewController.swift b/Santander/UI/AppInfoViewController.swift index 00a1f66..f80b71b 100644 --- a/Santander/UI/AppInfoViewController.swift +++ b/Santander/UI/AppInfoViewController.swift @@ -2,7 +2,7 @@ // AppInfoViewController.swift // Santander // -// Created by Serena on 15/08/2022. +// Created by Antoine on 15/08/2022. // import UIKit diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogCell.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogCell.swift index 0bcd4da..5990103 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogCell.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogCell.swift @@ -2,7 +2,7 @@ // AssetCatalogCell.swift // Santander // -// Created by Serena on 18/09/2022 +// Created by Antoine on 18/09/2022 // diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogDetailsView.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogDetailsView.swift index ee0d89b..d4f50aa 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogDetailsView.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogDetailsView.swift @@ -2,7 +2,7 @@ // AssetCatalogDetailsView.swift // Santander // -// Created by Serena on 27/09/2022 +// Created by Antoine on 27/09/2022 // diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogGridPreviewCell.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogGridPreviewCell.swift index f0fe6e0..da82949 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogGridPreviewCell.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogGridPreviewCell.swift @@ -2,7 +2,7 @@ // AssetCatalogGridPreviewCell.swift // Santander // -// Created by Serena on 08/10/2022 +// Created by Antoine on 08/10/2022 // diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogRenditionViewController.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogRenditionViewController.swift index 0575712..2606164 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogRenditionViewController.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogRenditionViewController.swift @@ -2,7 +2,7 @@ // AssetCatalogRenditionViewController.swift // Santander // -// Created by Serena on 01/10/2022 +// Created by Antoine on 01/10/2022 // diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogSectionHeader.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogSectionHeader.swift index 7130517..29c2565 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogSectionHeader.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogSectionHeader.swift @@ -2,7 +2,7 @@ // AssetCatalogSectionHeader.swift // Santander // -// Created by Serena on 21/09/2022 +// Created by Antoine on 21/09/2022 // diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogSidebarListView.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogSidebarListView.swift index 82840ee..348d6e7 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogSidebarListView.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogSidebarListView.swift @@ -2,7 +2,7 @@ // AssetCatalogSidebarListView.swift // Santander // -// Created by Serena on 27/10/2022 +// Created by Antoine on 27/10/2022 // diff --git a/Santander/UI/Editors/AssetCatalog/AssetCatalogViewController.swift b/Santander/UI/Editors/AssetCatalog/AssetCatalogViewController.swift index 63fcb11..8d9e075 100644 --- a/Santander/UI/Editors/AssetCatalog/AssetCatalogViewController.swift +++ b/Santander/UI/Editors/AssetCatalog/AssetCatalogViewController.swift @@ -2,7 +2,7 @@ // AssetCatalogViewController.swift // Santander // -// Created by Serena on 16/09/2022 +// Created by Antoine on 16/09/2022 // diff --git a/Santander/UI/Editors/Audio/AudioPlayerToolbarView.swift b/Santander/UI/Editors/Audio/AudioPlayerToolbarView.swift index 92de1e1..bd2c144 100644 --- a/Santander/UI/Editors/Audio/AudioPlayerToolbarView.swift +++ b/Santander/UI/Editors/Audio/AudioPlayerToolbarView.swift @@ -2,7 +2,7 @@ // AudioPlayerToolbarView.swift // Santander // -// Created by Serena on 29/08/2022. +// Created by Antoine on 29/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Audio/AudioPlayerViewController.swift b/Santander/UI/Editors/Audio/AudioPlayerViewController.swift index 05bd66e..283a6dd 100644 --- a/Santander/UI/Editors/Audio/AudioPlayerViewController.swift +++ b/Santander/UI/Editors/Audio/AudioPlayerViewController.swift @@ -2,7 +2,7 @@ // AudioPlayerViewController.swift // Santander // -// Created by Serena on 06/07/2022 +// Created by Antoine on 06/07/2022 // diff --git a/Santander/UI/Editors/BinaryExecutionViewController.swift b/Santander/UI/Editors/BinaryExecutionViewController.swift index 2e7f353..a6b84eb 100644 --- a/Santander/UI/Editors/BinaryExecutionViewController.swift +++ b/Santander/UI/Editors/BinaryExecutionViewController.swift @@ -2,7 +2,7 @@ // BinaryExecutionViewController.swift // Santander // -// Created by Serena on 06/09/2022 +// Created by Antoine on 06/09/2022 // diff --git a/Santander/UI/Editors/FileEditorType.swift b/Santander/UI/Editors/FileEditorType.swift index 8f303a0..cfcdaeb 100644 --- a/Santander/UI/Editors/FileEditorType.swift +++ b/Santander/UI/Editors/FileEditorType.swift @@ -2,7 +2,7 @@ // FileEditorType.swift // Santander // -// Created by Serena on 16/08/2022. +// Created by Antoine on 16/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Font/FontInformationViewController.swift b/Santander/UI/Editors/Font/FontInformationViewController.swift index 86323ae..2eb99cc 100644 --- a/Santander/UI/Editors/Font/FontInformationViewController.swift +++ b/Santander/UI/Editors/Font/FontInformationViewController.swift @@ -2,7 +2,7 @@ // FontInformationViewController.swift // Santander // -// Created by Serena on 03/09/2022. +// Created by Antoine on 03/09/2022. // import UIKit diff --git a/Santander/UI/Editors/Font/FontViewerController.swift b/Santander/UI/Editors/Font/FontViewerController.swift index c9106a6..508b47b 100644 --- a/Santander/UI/Editors/Font/FontViewerController.swift +++ b/Santander/UI/Editors/Font/FontViewerController.swift @@ -2,7 +2,7 @@ // FontViewerController.swift // Santander // -// Created by Serena on 03/09/2022. +// Created by Antoine on 03/09/2022. // import UIKit diff --git a/Santander/UI/Editors/Image/ImageLocationEditorViewController.swift b/Santander/UI/Editors/Image/ImageLocationEditorViewController.swift index 570e9b1..f0933de 100644 --- a/Santander/UI/Editors/Image/ImageLocationEditorViewController.swift +++ b/Santander/UI/Editors/Image/ImageLocationEditorViewController.swift @@ -2,7 +2,7 @@ // ImageLocationEditorViewController.swift // Santander // -// Created by Serena on 25/08/2022. +// Created by Antoine on 25/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Image/ImageMetadataViewController.swift b/Santander/UI/Editors/Image/ImageMetadataViewController.swift index ecaa978..b72e3dc 100644 --- a/Santander/UI/Editors/Image/ImageMetadataViewController.swift +++ b/Santander/UI/Editors/Image/ImageMetadataViewController.swift @@ -2,7 +2,7 @@ // ImageMetadataViewController.swift // Santander // -// Created by Serena on 24/08/2022. +// Created by Antoine on 24/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Image/ImageViewerController.swift b/Santander/UI/Editors/Image/ImageViewerController.swift index 2783e9f..2158e09 100644 --- a/Santander/UI/Editors/Image/ImageViewerController.swift +++ b/Santander/UI/Editors/Image/ImageViewerController.swift @@ -2,7 +2,7 @@ // ImageViewerController.swift // Santander // -// Created by Serena on 21/08/2022. +// Created by Antoine on 21/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Serialized/SerializedArrayViewController.swift b/Santander/UI/Editors/Serialized/SerializedArrayViewController.swift index 48d3c78..693f8b0 100644 --- a/Santander/UI/Editors/Serialized/SerializedArrayViewController.swift +++ b/Santander/UI/Editors/Serialized/SerializedArrayViewController.swift @@ -2,7 +2,7 @@ // SerializedArrayViewController.swift // Santander // -// Created by Serena on 18/08/2022. +// Created by Antoine on 18/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Serialized/SerializedDocumentViewController.swift b/Santander/UI/Editors/Serialized/SerializedDocumentViewController.swift index 0bd1de9..03738fd 100644 --- a/Santander/UI/Editors/Serialized/SerializedDocumentViewController.swift +++ b/Santander/UI/Editors/Serialized/SerializedDocumentViewController.swift @@ -2,7 +2,7 @@ // SerializedDocumentViewController.swift // Santander // -// Created by Serena on 16/08/2022. +// Created by Antoine on 16/08/2022. // import UIKit diff --git a/Santander/UI/Editors/Serialized/SerializedItemType.swift b/Santander/UI/Editors/Serialized/SerializedItemType.swift index 74b6fd0..bdcc1ac 100644 --- a/Santander/UI/Editors/Serialized/SerializedItemType.swift +++ b/Santander/UI/Editors/Serialized/SerializedItemType.swift @@ -2,7 +2,7 @@ // SerializedItemType.swift // Santander // -// Created by Serena on 17/08/2022. +// Created by Antoine on 17/08/2022. // import Foundation diff --git a/Santander/UI/Editors/Serialized/SerializedItemViewController.swift b/Santander/UI/Editors/Serialized/SerializedItemViewController.swift index f4ba9ef..e23d097 100644 --- a/Santander/UI/Editors/Serialized/SerializedItemViewController.swift +++ b/Santander/UI/Editors/Serialized/SerializedItemViewController.swift @@ -2,7 +2,7 @@ // PropertyListItemViewController.swift // Santander // -// Created by Serena on 17/08/2022. +// Created by Antoine on 17/08/2022. // import UIKit diff --git a/Santander/UI/Editors/TextEditor/KeyboardSearchView.swift b/Santander/UI/Editors/TextEditor/KeyboardSearchView.swift index c389f82..f7057d7 100644 --- a/Santander/UI/Editors/TextEditor/KeyboardSearchView.swift +++ b/Santander/UI/Editors/TextEditor/KeyboardSearchView.swift @@ -2,7 +2,7 @@ // KeyboardSearchView.swift // Santander // -// Created by Serena on 09/02/2023. +// Created by Antoine on 09/02/2023. // import UIKit @@ -20,7 +20,7 @@ fileprivate func makeGenericButton(image: UIImage?) -> UIButton { class KeyboardSearchView: UIInputView { weak var textView: TextView? - let searchQueue = DispatchQueue(label: "com.serena.Santander.KeyboardSearchView.search", qos: .background) + let searchQueue = DispatchQueue(label: "com.Antoine.Santander.KeyboardSearchView.search", qos: .background) var searchWorkItem: DispatchWorkItem? var searchMethod: SearchQuery.MatchMethod = .contains diff --git a/Santander/UI/Editors/TextEditor/KeyboardToolsView.swift b/Santander/UI/Editors/TextEditor/KeyboardToolsView.swift index 64759a1..b25d38c 100644 --- a/Santander/UI/Editors/TextEditor/KeyboardToolsView.swift +++ b/Santander/UI/Editors/TextEditor/KeyboardToolsView.swift @@ -2,13 +2,13 @@ // KeyboardToolsView.swift // Santander // -// Created by Serena on 04/07/2022 +// Created by Antoine on 04/07/2022 // import Runestone import UIKit -// Stolen directly from Runestone example source code, modified for use by Serena +// Stolen directly from Runestone example source code, modified for use by Antoine fileprivate func _makeGenericButton(image: UIImage?) -> UIButton { let button = UIButton(type: .system) button.translatesAutoresizingMaskIntoConstraints = false diff --git a/Santander/UI/Editors/TextEditor/TextEditorThemeSettingsViewController.swift b/Santander/UI/Editors/TextEditor/TextEditorThemeSettingsViewController.swift index 8263bbf..3f18b70 100644 --- a/Santander/UI/Editors/TextEditor/TextEditorThemeSettingsViewController.swift +++ b/Santander/UI/Editors/TextEditor/TextEditorThemeSettingsViewController.swift @@ -2,7 +2,7 @@ // TextEditorThemeSettingsViewController.swift // Santander // -// Created by Serena on 03/07/2022 +// Created by Antoine on 03/07/2022 // diff --git a/Santander/UI/Editors/TextEditor/TextFileEditorViewController.swift b/Santander/UI/Editors/TextEditor/TextFileEditorViewController.swift index c8e9cfc..5e4cd79 100644 --- a/Santander/UI/Editors/TextEditor/TextFileEditorViewController.swift +++ b/Santander/UI/Editors/TextEditor/TextFileEditorViewController.swift @@ -2,7 +2,7 @@ // TextFileEditorViewController.swift // Santander // -// Created by Serena on 02/07/2022 +// Created by Antoine on 02/07/2022 // diff --git a/Santander/UI/Editors/TextEditor/Themes.swift b/Santander/UI/Editors/TextEditor/Themes.swift index 251231c..39563fb 100644 --- a/Santander/UI/Editors/TextEditor/Themes.swift +++ b/Santander/UI/Editors/TextEditor/Themes.swift @@ -2,7 +2,7 @@ // Themes.swift // Santander // -// Created by Serena on 03/07/2022 +// Created by Antoine on 03/07/2022 // diff --git a/Santander/UI/FilePreviewDataSource.swift b/Santander/UI/FilePreviewDataSource.swift index 9135dea..e21b954 100644 --- a/Santander/UI/FilePreviewDataSource.swift +++ b/Santander/UI/FilePreviewDataSource.swift @@ -2,7 +2,7 @@ // FilePreviewDataSource.swift // Santander // -// Created by Serena on 23/06/2022 +// Created by Antoine on 23/06/2022 // diff --git a/Santander/UI/Path/DragAndDrop.swift b/Santander/UI/Path/DragAndDrop.swift index 5bdea93..eb9d896 100644 --- a/Santander/UI/Path/DragAndDrop.swift +++ b/Santander/UI/Path/DragAndDrop.swift @@ -2,7 +2,7 @@ // DragAndDrop.swift // Santander // -// Created by Serena on 24/06/2022 +// Created by Antoine on 24/06/2022 // diff --git a/Santander/UI/Path/GoToViewController.swift b/Santander/UI/Path/GoToViewController.swift new file mode 100644 index 0000000..4be3b07 --- /dev/null +++ b/Santander/UI/Path/GoToViewController.swift @@ -0,0 +1,76 @@ +// +// GoToViewController.swift +// Santander +// +// Created by Antoine on 22/04/2023. +// + +import UIKit + +class GoToView: UIView { + let xButton = UIButton() + let searchField = UITextField() + + override init(frame: CGRect) { + super.init(frame: frame) + setup() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setup() { + layer.cornerRadius = 10 + layer.masksToBounds = true + + let visualEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .systemThickMaterial)) + visualEffectView.translatesAutoresizingMaskIntoConstraints = false + addSubview(visualEffectView) + visualEffectView.constraintCompletely(to: self) + + let glassImage = UIImageView(image: UIImage(systemName: "magnifyingglass")?.applyingSymbolConfiguration(UIImage.SymbolConfiguration(pointSize: 30))?.withTintColor(.systemGray, renderingMode: .alwaysOriginal)) + glassImage.translatesAutoresizingMaskIntoConstraints = false + glassImage.contentScaleFactor = 1.0 + visualEffectView.contentView.addSubview(glassImage) + + searchField.tintColor = .white + searchField.font = .systemFont(ofSize: 30) + searchField.translatesAutoresizingMaskIntoConstraints = false + searchField.placeholder = "Search" + visualEffectView.contentView.addSubview(searchField) + + xButton.translatesAutoresizingMaskIntoConstraints = false +// xButton.setImage(UIImage(systemName: "xmark.circle.fill")?.withTintColor(.systemGray, renderingMode: .alwaysOriginal), for: .normal) + xButton.setImage(UIImage(systemName: "xmark.circle.fill")?.applyingSymbolConfiguration(UIImage.SymbolConfiguration(pointSize: 30))?.withTintColor(.systemGray, renderingMode: .alwaysOriginal), for: .normal) + visualEffectView.contentView.addSubview(xButton) + + let stackView = UIStackView(arrangedSubviews: [glassImage, searchField, xButton]) + stackView.translatesAutoresizingMaskIntoConstraints = false + stackView.spacing = 5 + stackView.distribution = .fillProportionally + visualEffectView.contentView.addSubview(stackView) + NSLayoutConstraint.activate([ + stackView.leadingAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.leadingAnchor), + stackView.trailingAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.trailingAnchor), + stackView.topAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.topAnchor, constant: 10) + ]) + /* + NSLayoutConstraint.activate([ + glassImage.leadingAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.leadingAnchor), + glassImage.topAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.topAnchor, constant: 10), +// glassImage.widthAnchor.constraint(equalToConstant: 30), + + searchField.leadingAnchor.constraint(equalTo: glassImage.trailingAnchor, constant: 5), + searchField.centerYAnchor.constraint(equalTo: glassImage.centerYAnchor), + + xButton.trailingAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.trailingAnchor), + xButton.leadingAnchor.constraint(equalTo: visualEffectView.contentView.layoutMarginsGuide.trailingAnchor, constant: -10), + xButton.centerYAnchor.constraint(equalTo: searchField.centerYAnchor), + + searchField.trailingAnchor.constraint(equalTo: xButton.leadingAnchor), + ]) + */ + searchField.becomeFirstResponder() + } +} diff --git a/Santander/UI/Path/PathGroupOwnerViewController.swift b/Santander/UI/Path/PathGroupOwnerViewController.swift index 454f8fe..c783042 100644 --- a/Santander/UI/Path/PathGroupOwnerViewController.swift +++ b/Santander/UI/Path/PathGroupOwnerViewController.swift @@ -2,7 +2,7 @@ // PathGroupOwnerViewController.swift // Santander // -// Created by Serena on 07/08/2022. +// Created by Antoine on 07/08/2022. // import UIKit diff --git a/Santander/UI/Path/PathInformationTableViewController.swift b/Santander/UI/Path/PathInformationTableViewController.swift index 0e62545..e5a0452 100644 --- a/Santander/UI/Path/PathInformationTableViewController.swift +++ b/Santander/UI/Path/PathInformationTableViewController.swift @@ -2,7 +2,7 @@ // PathInformationTableViewController.swift // Santander // -// Created by Serena on 21/06/2022 +// Created by Antoine on 21/06/2022 // diff --git a/Santander/UI/Path/PathListViewController.swift b/Santander/UI/Path/PathListViewController.swift index a5de927..c71f90e 100644 --- a/Santander/UI/Path/PathListViewController.swift +++ b/Santander/UI/Path/PathListViewController.swift @@ -2,7 +2,7 @@ // PathListViewController.swift // Santander // -// Created by Serena on 21/06/2022 +// Created by Antoine on 21/06/2022 // @@ -404,6 +404,18 @@ class PathListViewController: UITableViewController, PathTransitioning { } let otherLocationAction = UIAction(title: "Other..") { _ in + let goToView = GoToView() + goToView.translatesAutoresizingMaskIntoConstraints = false + self.view.addSubview(goToView) + + NSLayoutConstraint.activate([ + goToView.centerXAnchor.constraint(equalTo: self.view.layoutMarginsGuide.centerXAnchor), + goToView.centerYAnchor.constraint(equalTo: self.view.layoutMarginsGuide.centerYAnchor), + goToView.heightAnchor.constraint(equalToConstant: 150), + goToView.widthAnchor.constraint(equalToConstant: 600), + ]) + + /* let alert = UIAlertController(title: "Other Location", message: "Type the URL of the other path you want to go to", preferredStyle: .alert) alert.addTextField { textfield in @@ -423,6 +435,7 @@ class PathListViewController: UITableViewController, PathTransitioning { alert.addAction(goAction) alert.preferredAction = goAction self.present(alert, animated: true) + */ } items.append(otherLocationAction) @@ -710,8 +723,29 @@ class PathListViewController: UITableViewController, PathTransitioning { let renameAction = UIAction(title: "Rename", image: UIImage(systemName: "rectangle.and.pencil.and.ellipsis")) { _ in let alert = UIAlertController(title: "Rename", message: nil, preferredStyle: .alert) - + if let cell = tableView.cellForRow(at: indexPath), var conf = cell.contentConfiguration as? UIListContentConfiguration, + let imageGuide = (cell.contentView as? UIListContentView)?.imageLayoutGuide { + let textField = RenamerTextField(path: item) + textField.returnKeyType = .done + textField.translatesAutoresizingMaskIntoConstraints = false + textField.delegate = self + + textField.text = conf.text + + conf.text = nil /* Always make sure this is after textField.text = conf.text */ + cell.contentConfiguration = conf + cell.contentView.addSubview(textField) + NSLayoutConstraint.activate([ + textField.leadingAnchor.constraint(equalTo: imageGuide.trailingAnchor, constant: conf.imageToTextPadding), + textField.centerYAnchor.constraint(equalTo: imageGuide.centerYAnchor) + ]) + tableView.scrollToRow(at: indexPath, at: .top, animated: true) + textField.becomeFirstResponder() + return // We're done, proceed to alert method only if we can't get the stuff we tried to in the `if let` statement + } + let renameAction = UIAlertAction(title: "Rename", style: .default) { _ in + guard let name = alert.textFields?.first?.text else { return } @@ -1015,6 +1049,36 @@ extension PathListViewController: UINavigationItemRenameDelegate { } #endif +extension PathListViewController: UITextFieldDelegate { + func textFieldShouldReturn(_ textField: UITextField) -> Bool { + guard let textField = textField as? RenamerTextField else { + fatalError("How What When Where Why") + } + + textField.notifyShouldReturnUponResigning = false + defer { + textField.resignFirstResponder() + textField.removeFromSuperview() + } + + guard let name = textField.text else { return false } + let item = textField.path + let newPath: URL = item.deletingLastPathComponent().appendingPathComponent(name) + if newPath == item.url { // Same URL, don't try to move + return true + } + + do { + try FSOperation.perform(.rename(item: item.url, newPath: newPath), rootHelperConf: RootConf.shared) + } catch { + self.errorAlert(error, title: "Unable to rename \(item.lastPathComponent)") + } + + print(textField.path) + return true + } +} + /// Represents an item which could be displayed in SubPathsTableViewController, /// being either a search suggestion or a path enum SubPathsRowItem: Hashable { diff --git a/Santander/UI/Path/PathOperationViewController.swift b/Santander/UI/Path/PathOperationViewController.swift index d1ab2f0..76ba401 100644 --- a/Santander/UI/Path/PathOperationViewController.swift +++ b/Santander/UI/Path/PathOperationViewController.swift @@ -2,7 +2,7 @@ // PathOperationViewController.swift // Santander // -// Created by Serena on 24/06/2022 +// Created by Antoine on 24/06/2022 // import UIKit diff --git a/Santander/UI/Path/PathPermissionsViewController.swift b/Santander/UI/Path/PathPermissionsViewController.swift index 69d6784..a0ee4af 100644 --- a/Santander/UI/Path/PathPermissionsViewController.swift +++ b/Santander/UI/Path/PathPermissionsViewController.swift @@ -2,7 +2,7 @@ // PathPermissionsViewController.swift // Santander // -// Created by Serena on 05/08/2022. +// Created by Antoine on 05/08/2022. // import UIKit diff --git a/Santander/UI/Path/PathSidebarListViewController.swift b/Santander/UI/Path/PathSidebarListViewController.swift index bc70938..3a5a7ee 100644 --- a/Santander/UI/Path/PathSidebarListViewController.swift +++ b/Santander/UI/Path/PathSidebarListViewController.swift @@ -2,7 +2,7 @@ // PathSidebarListViewController.swift // Santander // -// Created by Serena on 25/06/2022 +// Created by Antoine on 25/06/2022 // @@ -41,6 +41,7 @@ class PathSidebarListViewController: UIViewController, PathTransitioning, UIColl self.presentNewGroupAlert() } + navigationController?.navigationBar.prefersLargeTitles = true let newGroupsButton = UIBarButtonItem(systemItem: .add, primaryAction: newGroupAction) setToolbarItems([newGroupsButton], animated: true) navigationController?.setToolbarHidden(false, animated: false) diff --git a/Santander/UI/Path/RenamerTextField.swift b/Santander/UI/Path/RenamerTextField.swift new file mode 100644 index 0000000..7f58f7c --- /dev/null +++ b/Santander/UI/Path/RenamerTextField.swift @@ -0,0 +1,39 @@ +// +// RenamerTextField.swift +// Santander +// +// Created by Antoine on 20/04/2023. +// + +import UIKit +import CoreMedia + +class RenamerTextField: UITextField { + override var canBecomeFirstResponder: Bool { + true + } + + let path: Path + // Should we notify the delegate of `textFieldShouldReturn` upon `resignFirstResponder` + var notifyShouldReturnUponResigning: Bool = true + + init(path: Path) { + self.path = path + CMSampleTimingInfo(duration: .zero, presentationTimeStamp: .zero, decodeTimeStamp: .zero) + super.init(frame: .zero) + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + @discardableResult + override func resignFirstResponder() -> Bool { + if notifyShouldReturnUponResigning { + return delegate?.textFieldShouldReturn?(self) ?? true + } + + return super.resignFirstResponder() + } + +} diff --git a/Santander/UI/Path/Search.swift b/Santander/UI/Path/Search.swift index 229b5ea..352d0f1 100644 --- a/Santander/UI/Path/Search.swift +++ b/Santander/UI/Path/Search.swift @@ -2,7 +2,7 @@ // Search.swift // Santander // -// Created by Serena on 25/06/2022 +// Created by Antoine on 25/06/2022 // diff --git a/Santander/UI/Path/ToolbarItems.swift b/Santander/UI/Path/ToolbarItems.swift index f0c85d9..29ec168 100644 --- a/Santander/UI/Path/ToolbarItems.swift +++ b/Santander/UI/Path/ToolbarItems.swift @@ -2,7 +2,7 @@ // ToolbarItems.swift // Santander // -// Created by Serena on 04/08/2022. +// Created by Antoine on 04/08/2022. // import UIKit diff --git a/Santander/UI/SettingsTableViewController.swift b/Santander/UI/SettingsTableViewController.swift index 421258a..4249de1 100644 --- a/Santander/UI/SettingsTableViewController.swift +++ b/Santander/UI/SettingsTableViewController.swift @@ -2,7 +2,7 @@ // SettingsTableViewController.swift // Santander // -// Created by Serena on 24/06/2022 +// Created by Antoine on 24/06/2022 // diff --git a/Santander/UI/TypeSelectionViewController.swift b/Santander/UI/TypeSelectionViewController.swift index be04f4c..7dc6f46 100644 --- a/Santander/UI/TypeSelectionViewController.swift +++ b/Santander/UI/TypeSelectionViewController.swift @@ -2,7 +2,7 @@ // TypeSelectionViewController.swift // Santander // -// Created by Serena on 01/07/2022 +// Created by Antoine on 01/07/2022 //