From df30cf7740578cd97be285e22e97b17d11d5bd73 Mon Sep 17 00:00:00 2001 From: Felix Niu Date: Thu, 6 Apr 2023 15:25:59 +0800 Subject: [PATCH] Fix custom view position --- Sources/EasyTipView/EasyTipView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/EasyTipView/EasyTipView.swift b/Sources/EasyTipView/EasyTipView.swift index 3d3e1be..0f22407 100644 --- a/Sources/EasyTipView/EasyTipView.swift +++ b/Sources/EasyTipView/EasyTipView.swift @@ -533,7 +533,7 @@ open class EasyTipView: UIView { } if case .view(let contentView) = content { - contentView.translatesAutoresizingMaskIntoConstraints = false + contentView.translatesAutoresizingMaskIntoConstraints = true contentView.frame = getContentRect(from: getBubbleFrame()) }