SyntaxFix
Write A Post
Hire A Developer
Questions
Tested in Xcode 9.4, Swift 4 Another way to solve this issue is , You can add
override func layoutSubviews() { self.frame = (self.superview?.bounds)! }
in subview class.