@@ -302,35 +302,35 @@ public extension UIView {
302
302
func fill( _ inset: CGFloat = 0.0 , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , left: NSLayoutConstraint , bottom: NSLayoutConstraint , right: NSLayoutConstraint ) {
303
303
let top = self . top ( inset, priority: priority)
304
304
let left = self . left ( inset, priority: priority)
305
- let bottom = self . bottom ( - inset, priority: priority)
306
- let right = self . right ( - inset, priority: priority)
305
+ let bottom = self . bottom ( inset, priority: priority)
306
+ let right = self . right ( inset, priority: priority)
307
307
return ( top: top, left: left, bottom: bottom, right: right)
308
308
}
309
309
310
310
@discardableResult
311
311
func fill( _ insets: UIEdgeInsets , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , left: NSLayoutConstraint , bottom: NSLayoutConstraint , right: NSLayoutConstraint ) {
312
312
let top = self . top ( insets. top, priority: priority)
313
313
let left = self . left ( insets. left, priority: priority)
314
- let bottom = self . bottom ( - insets. bottom, priority: priority)
315
- let right = self . right ( - insets. right, priority: priority)
314
+ let bottom = self . bottom ( insets. bottom, priority: priority)
315
+ let right = self . right ( insets. right, priority: priority)
316
316
return ( top: top, left: left, bottom: bottom, right: right)
317
317
}
318
318
319
319
@discardableResult
320
320
func fillLeadingTrailing( _ inset: CGFloat = 0.0 , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , leading: NSLayoutConstraint , bottom: NSLayoutConstraint , trailing: NSLayoutConstraint ) {
321
321
let top = self . top ( inset, priority: priority)
322
322
let leading = self . leading ( inset, priority: priority)
323
- let bottom = self . bottom ( - inset, priority: priority)
324
- let trailing = self . trailing ( - inset, priority: priority)
323
+ let bottom = self . bottom ( inset, priority: priority)
324
+ let trailing = self . trailing ( inset, priority: priority)
325
325
return ( top: top, leading: leading, bottom: bottom, trailing: trailing)
326
326
}
327
327
328
328
@discardableResult
329
329
func fillLeadingTrailing( _ insets: UIEdgeInsets , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , leading: NSLayoutConstraint , bottom: NSLayoutConstraint , trailing: NSLayoutConstraint ) {
330
330
let top = self . top ( insets. top, priority: priority)
331
331
let leading = self . leading ( insets. left, priority: priority)
332
- let bottom = self . bottom ( - insets. bottom, priority: priority)
333
- let trailing = self . trailing ( - insets. right, priority: priority)
332
+ let bottom = self . bottom ( insets. bottom, priority: priority)
333
+ let trailing = self . trailing ( insets. right, priority: priority)
334
334
return ( top: top, leading: leading, bottom: bottom, trailing: trailing)
335
335
}
336
336
@@ -426,35 +426,35 @@ public extension UIView {
426
426
func fillSafe( _ inset: CGFloat = 0.0 , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , left: NSLayoutConstraint , bottom: NSLayoutConstraint , right: NSLayoutConstraint ) {
427
427
let top = self . topSafe ( inset, priority: priority)
428
428
let left = self . leftSafe ( inset, priority: priority)
429
- let bottom = self . bottomSafe ( - inset, priority: priority)
430
- let right = self . rightSafe ( - inset, priority: priority)
429
+ let bottom = self . bottomSafe ( inset, priority: priority)
430
+ let right = self . rightSafe ( inset, priority: priority)
431
431
return ( top: top, left: left, bottom: bottom, right: right)
432
432
}
433
433
434
434
@discardableResult
435
435
func fillSafe( _ insets: UIEdgeInsets , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , left: NSLayoutConstraint , bottom: NSLayoutConstraint , right: NSLayoutConstraint ) {
436
436
let top = self . topSafe ( insets. top, priority: priority)
437
437
let left = self . leftSafe ( insets. left, priority: priority)
438
- let bottom = self . bottomSafe ( - insets. bottom, priority: priority)
439
- let right = self . rightSafe ( - insets. right, priority: priority)
438
+ let bottom = self . bottomSafe ( insets. bottom, priority: priority)
439
+ let right = self . rightSafe ( insets. right, priority: priority)
440
440
return ( top: top, left: left, bottom: bottom, right: right)
441
441
}
442
442
443
443
@discardableResult
444
444
func fillLeadingTrailingSafe( _ inset: CGFloat = 0.0 , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , leading: NSLayoutConstraint , bottom: NSLayoutConstraint , trailing: NSLayoutConstraint ) {
445
445
let top = self . topSafe ( inset, priority: priority)
446
446
let leading = self . leadingSafe ( inset, priority: priority)
447
- let bottom = self . bottomSafe ( - inset, priority: priority)
448
- let trailing = self . trailingSafe ( - inset, priority: priority)
447
+ let bottom = self . bottomSafe ( inset, priority: priority)
448
+ let trailing = self . trailingSafe ( inset, priority: priority)
449
449
return ( top: top, leading: leading, bottom: bottom, trailing: trailing)
450
450
}
451
451
452
452
@discardableResult
453
453
func fillLeadingTrailingSafe( _ insets: UIEdgeInsets , priority: UILayoutPriority = . required) -> ( top: NSLayoutConstraint , leading: NSLayoutConstraint , bottom: NSLayoutConstraint , trailing: NSLayoutConstraint ) {
454
454
let top = self . topSafe ( insets. top, priority: priority)
455
455
let leading = self . leadingSafe ( insets. left, priority: priority)
456
- let bottom = self . bottomSafe ( - insets. bottom, priority: priority)
457
- let trailing = self . trailingSafe ( - insets. right, priority: priority)
456
+ let bottom = self . bottomSafe ( insets. bottom, priority: priority)
457
+ let trailing = self . trailingSafe ( insets. right, priority: priority)
458
458
return ( top: top, leading: leading, bottom: bottom, trailing: trailing)
459
459
}
460
460
0 commit comments