Skip to content

Commit

Permalink
Remove unnecessary import checks for SwiftUI
Browse files Browse the repository at this point in the history
  • Loading branch information
NickEntin committed Jan 26, 2024
1 parent 92a83c8 commit e1d7bb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Example/AccessibilitySnapshot/SwiftUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// limitations under the License.
//

#if swift(>=5.1) && canImport(SwiftUI)

import SwiftUI

fileprivate struct Circle: View {
Expand Down Expand Up @@ -89,5 +87,3 @@ struct SwiftUIView_Previews: PreviewProvider {
.previewLayout(.sizeThatFits)
}
}

#endif
4 changes: 0 additions & 4 deletions Example/AccessibilitySnapshot/SwiftUIViewWithScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// limitations under the License.
//

#if swift(>=5.1) && canImport(SwiftUI)

import SwiftUI

/// A SwiftUI View inside a ScrollView will produce no accessibility elements for iOS 14.0 and 14.1, for more
Expand All @@ -34,5 +32,3 @@ struct SwiftUIViewWithScrollView_Previews: PreviewProvider {
.previewLayout(.sizeThatFits)
}
}

#endif

0 comments on commit e1d7bb2

Please sign in to comment.