Skip to content

Commit b7483d8

Browse files
author
JWI
committed
test
1 parent 126be74 commit b7483d8

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Sources/UIKitBackend/Widget.swift

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)