Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shchukin-alex committed Sep 29, 2022
1 parent ce3f6b4 commit 8fa16ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Form/UIScrollView+Spacing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public extension UIScrollView {
disembedBag += { deactivate(constraints) }

// .equalSpacing gives ambigious layout on iOS < 11, help out by calculating spacing manually.
if #unavailable(iOS 11), !orderedViews.isEmpty {
// swiftlint:disable:next unavailable_condition
if #available(iOS 11, *) {} else if !orderedViews.isEmpty {
let contentHeight = signal(for: \.contentSize)[\.height].toVoid().atValue {
for view in orderedViews { view.layoutIfNeeded() }
}.map {
Expand Down

0 comments on commit 8fa16ad

Please sign in to comment.