From 9687f0e4c17637ae3f945820a59236411534786f Mon Sep 17 00:00:00 2001 From: ntunin Date: Fri, 30 Jul 2021 10:34:36 +0600 Subject: [PATCH] fix invisible image in UIImageView after configure frame --- Sources/ElementType.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Sources/ElementType.swift b/Sources/ElementType.swift index ad2e656..1772dcc 100644 --- a/Sources/ElementType.swift +++ b/Sources/ElementType.swift @@ -119,6 +119,24 @@ public class ViewType: ElementType { } } + override var frame: CGRect { + get { + view.frame + } + set { + view.frame = newValue + } + } + + override var bounds: CGRect { + get { + view.bounds + } + set { + view.bounds = newValue + } + } + var safeAreaInsets: UIEdgeInsets { if #available(iOS 11.0, *) { return view.safeAreaInsets