File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class BaseViewWidget: UIView, WidgetProtocolHelpers {
166166 super. didMoveToSuperview ( )
167167
168168 updateLeftConstraint ( )
169- updateTopConstraint ( )
169+ // updateTopConstraint()
170170 }
171171
172172 func add( childWidget: some WidgetProtocol ) {
@@ -289,20 +289,11 @@ class WrapperWidget<View: UIView>: BaseViewWidget {
289289 self . addSubview ( child)
290290 child. translatesAutoresizingMaskIntoConstraints = false
291291 NSLayoutConstraint . activate ( [
292- {
293- let c = child. topAnchor. constraint ( equalTo: self . topAnchor)
294- c. priority = . defaultHigh
295- return c
296- } ( ) ,
292+ child. topAnchor. constraint ( equalTo: self . topAnchor) ,
297293 child. leadingAnchor. constraint ( equalTo: self . leadingAnchor) ,
298- {
299- let c = child. bottomAnchor. constraint ( equalTo: self . bottomAnchor)
300- c. priority = . defaultHigh
301- return c
302- } ( ) ,
294+ child. bottomAnchor. constraint ( equalTo: self . bottomAnchor) ,
303295 child. trailingAnchor. constraint ( equalTo: self . trailingAnchor) ,
304296 ] )
305-
306297 }
307298
308299 override convenience init ( ) {
You can’t perform that action at this time.
0 commit comments