From 962f1d7495de07d91ff04c96f8f8d2c4e4712c6f Mon Sep 17 00:00:00 2001 From: Michael Liberatore Date: Fri, 11 Sep 2020 14:57:09 -0400 Subject: [PATCH] Fixes Inability to Tap Screenshot on iOS 14 --- .../PinpointKit/Sources/Core/ScreenshotCell.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PinpointKit/PinpointKit/Sources/Core/ScreenshotCell.swift b/PinpointKit/PinpointKit/Sources/Core/ScreenshotCell.swift index cfecf05..9a9224f 100644 --- a/PinpointKit/PinpointKit/Sources/Core/ScreenshotCell.swift +++ b/PinpointKit/PinpointKit/Sources/Core/ScreenshotCell.swift @@ -117,12 +117,12 @@ class ScreenshotCell: UITableViewCell { backgroundColor = .clear selectionStyle = .none - addSubview(stackView) + contentView.addSubview(stackView) - stackView.topAnchor.constraint(equalTo: topAnchor).isActive = true - stackView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true - stackView.leadingAnchor.constraint(equalTo: leadingAnchor).isActive = true - stackView.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true + stackView.topAnchor.constraint(equalTo: contentView.topAnchor).isActive = true + stackView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor).isActive = true + stackView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor).isActive = true + stackView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor).isActive = true stackView.addArrangedSubview(screenshotButton) stackView.addArrangedSubview(hintLabel)