diff --git a/Tusker.xcodeproj/project.pbxproj b/Tusker.xcodeproj/project.pbxproj index a7170b48..4fe8aa5f 100644 --- a/Tusker.xcodeproj/project.pbxproj +++ b/Tusker.xcodeproj/project.pbxproj @@ -282,8 +282,6 @@ D6DD2A45273D6C5700386A6C /* GIFImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DD2A44273D6C5700386A6C /* GIFImageView.swift */; }; D6DD353D22F28CD000A9563A /* ContentWarningCopyMode.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DD353C22F28CD000A9563A /* ContentWarningCopyMode.swift */; }; D6DD353F22F502EC00A9563A /* Preferences+Notification.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DD353E22F502EC00A9563A /* Preferences+Notification.swift */; }; - D6DEA0DE268400C300FE896A /* ConfirmLoadMoreTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DEA0DC268400C300FE896A /* ConfirmLoadMoreTableViewCell.swift */; }; - D6DEA0DF268400C300FE896A /* ConfirmLoadMoreTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D6DEA0DD268400C300FE896A /* ConfirmLoadMoreTableViewCell.xib */; }; D6DF95C12533F5DE0027A9B6 /* RelationshipMO.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DF95C02533F5DE0027A9B6 /* RelationshipMO.swift */; }; D6DFC69E242C490400ACC392 /* TrackpadScrollGestureRecognizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DFC69D242C490400ACC392 /* TrackpadScrollGestureRecognizer.swift */; }; D6DFC6A0242C4CCC00ACC392 /* WeakArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6DFC69F242C4CCC00ACC392 /* WeakArray.swift */; }; @@ -645,8 +643,6 @@ D6DD2A44273D6C5700386A6C /* GIFImageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GIFImageView.swift; sourceTree = ""; }; D6DD353C22F28CD000A9563A /* ContentWarningCopyMode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentWarningCopyMode.swift; sourceTree = ""; }; D6DD353E22F502EC00A9563A /* Preferences+Notification.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Preferences+Notification.swift"; sourceTree = ""; }; - D6DEA0DC268400C300FE896A /* ConfirmLoadMoreTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfirmLoadMoreTableViewCell.swift; sourceTree = ""; }; - D6DEA0DD268400C300FE896A /* ConfirmLoadMoreTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ConfirmLoadMoreTableViewCell.xib; sourceTree = ""; }; D6DF95C02533F5DE0027A9B6 /* RelationshipMO.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RelationshipMO.swift; sourceTree = ""; }; D6DFC69D242C490400ACC392 /* TrackpadScrollGestureRecognizer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrackpadScrollGestureRecognizer.swift; sourceTree = ""; }; D6DFC69F242C4CCC00ACC392 /* WeakArray.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeakArray.swift; sourceTree = ""; }; @@ -1451,8 +1447,6 @@ D6DEA0DB268400AF00FE896A /* Confirm Load More Cell */ = { isa = PBXGroup; children = ( - D6DEA0DC268400C300FE896A /* ConfirmLoadMoreTableViewCell.swift */, - D6DEA0DD268400C300FE896A /* ConfirmLoadMoreTableViewCell.xib */, D61A45E528DC0F2F002BE511 /* ConfirmLoadMoreCollectionViewCell.swift */, ); path = "Confirm Load More Cell"; @@ -1686,7 +1680,6 @@ D6F2E966249E8BFD005846BB /* IssueReporterViewController.xib in Resources */, D662AEF0263A3B880082A153 /* PollFinishedTableViewCell.xib in Resources */, D6A4DCCD2553667800D9DE31 /* FastAccountSwitcherViewController.xib in Resources */, - D6DEA0DF268400C300FE896A /* ConfirmLoadMoreTableViewCell.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1777,7 +1770,6 @@ D60E2F292442372B005F8713 /* AccountMO.swift in Sources */, D6412B0324AFF6A600F5412E /* TabBarScrollableViewController.swift in Sources */, D6093FB725BE0CF3004811E6 /* TrendHistoryView.swift in Sources */, - D6DEA0DE268400C300FE896A /* ConfirmLoadMoreTableViewCell.swift in Sources */, D6EBF01723C55E0D00AE061B /* UISceneSession+MastodonController.swift in Sources */, 04DACE8C212CB14B009840C4 /* MainTabBarViewController.swift in Sources */, D68E525D24A3E8F00054355A /* SearchViewController.swift in Sources */, diff --git a/Tusker/Views/Confirm Load More Cell/ConfirmLoadMoreTableViewCell.swift b/Tusker/Views/Confirm Load More Cell/ConfirmLoadMoreTableViewCell.swift deleted file mode 100644 index 844170cd..00000000 --- a/Tusker/Views/Confirm Load More Cell/ConfirmLoadMoreTableViewCell.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// ConfirmLoadMoreTableViewCell.swift -// Tusker -// -// Created by Shadowfacts on 6/23/21. -// Copyright © 2021 Shadowfacts. All rights reserved. -// - -import UIKit - -protocol ConfirmLoadOlderTableViewCellDelegate: AnyObject { - func confirmLoadMore() -} - -class ConfirmLoadMoreTableViewCell: UITableViewCell { - - var confirmLoadMore: (() -> Void)? - - @IBOutlet weak var confirmButton: UIButton! - - private var isLoading = false - - override func awakeFromNib() { - super.awakeFromNib() - - var config = UIButton.Configuration.tinted() - config.title = "Load More" - config.showsActivityIndicator = false - config.imagePadding = 4 - confirmButton.configuration = config - confirmButton.configurationUpdateHandler = { [unowned self] button in - button.configuration?.showsActivityIndicator = self.isLoading - } - } - - override func prepareForReuse() { - super.prepareForReuse() - - isLoading = false - confirmButton.setNeedsUpdateConfiguration() - } - - @IBAction func loadMorePressed(_ sender: Any) { - confirmLoadMore?() - isLoading = true - confirmButton.setNeedsUpdateConfiguration() - } - -} diff --git a/Tusker/Views/Confirm Load More Cell/ConfirmLoadMoreTableViewCell.xib b/Tusker/Views/Confirm Load More Cell/ConfirmLoadMoreTableViewCell.xib deleted file mode 100644 index 49c76e26..00000000 --- a/Tusker/Views/Confirm Load More Cell/ConfirmLoadMoreTableViewCell.xib +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -