Skip to content

Commit

Permalink
Rename PostTrashedOverlayView
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed May 4, 2024
1 parent a7e3810 commit bca05eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions WordPress/Classes/ViewRelated/Post/PostEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ extension PostEditor where Self: UIViewController {
// MARK: - Restore Trashed Post

private func showPostTrashedOverlay() {
let overlay = TrashedPostOverlayView()
let overlay = PostTrashedOverlayView()
view.addSubview(overlay)
overlay.translatesAutoresizingMaskIntoConstraints = false
overlay.onOverlayTapped = { [weak self] in self?.showRestorePostAlert(with: $0) }
view.pinSubviewToAllEdges(overlay)
}

private func showRestorePostAlert(with overlay: TrashedPostOverlayView) {
private func showRestorePostAlert(with overlay: PostTrashedOverlayView) {
overlay.isUserInteractionEnabled = false

let postType = post.localizedPostType.lowercased()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit

final class TrashedPostOverlayView: UIView {
var onOverlayTapped: ((TrashedPostOverlayView) -> Void)?
final class PostTrashedOverlayView: UIView {
var onOverlayTapped: ((PostTrashedOverlayView) -> Void)?

override init(frame: CGRect) {
super.init(frame: frame)
Expand Down

0 comments on commit bca05eb

Please sign in to comment.