Skip to content

Commit

Permalink
Fix iPad share (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews authored and boscojwho committed Oct 7, 2023
1 parent 68f89a4 commit 2974da7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Mlem/Views/Shared/Posts/Expanded Post.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ private struct AnchorsKey: PreferenceKey {
}
}

// swiftlint:disable type_body_length
struct ExpandedPost: View {
@Dependency(\.apiClient) var apiClient
@Dependency(\.commentRepository) var commentRepository
Expand Down Expand Up @@ -327,5 +326,3 @@ struct ExpandedPost: View {
}
}
}

// swiftlint:enable type_body_length
10 changes: 10 additions & 0 deletions Mlem/Views/Tabs/Feeds/Feed View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ struct FeedView: View {

@Environment(\.horizontalSizeClass) private var horizontalSizeClass

// MARK: Destructive confirmation

@State private var isPresentingConfirmDestructive: Bool = false
@State private var confirmationMenuFunction: StandardMenuFunction?

func confirmDestructive(destructiveFunction: StandardMenuFunction) {
confirmationMenuFunction = destructiveFunction
isPresentingConfirmDestructive = true
}

// MARK: - Main Views

var body: some View {
Expand Down

0 comments on commit 2974da7

Please sign in to comment.