Skip to content

Commit

Permalink
fix invisible image in UIImageView after configure frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ntunin committed Jul 30, 2021
1 parent 87f823c commit 9687f0e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Sources/ElementType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9687f0e

Please sign in to comment.