Skip to content

Commit

Permalink
Merge pull request #13 from rosberry/hotfix/Fix-UIImageView-layout-wi…
Browse files Browse the repository at this point in the history
…th-framezilla

Fix UI image view layout with framezilla
  • Loading branch information
ntunin authored Jul 30, 2021
2 parents 87f823c + 9687f0e commit 8737af3
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 8737af3

Please sign in to comment.