Skip to content

Commit

Permalink
fix support ios 14
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwillrock committed Nov 3, 2021
1 parent 6ebf4c0 commit 0d42515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Sources/TagsGridView/SizeReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import SwiftUI

public extension View {
func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
background {
background(
GeometryReader { geometry in
Color.clear
.preference(key: SizePreferenceKey.self,
value: geometry.size)
}
}
)
.onPreferenceChange(SizePreferenceKey.self, perform: onChange)
}
}
Expand Down
10 changes: 0 additions & 10 deletions Tests/TagsGridViewTests/TagsGridViewTests.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
import XCTest
@testable import TagsGridView

final class TagsGridViewTests: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(TagsGridView().text, "Hello, World!")
}
}

0 comments on commit 0d42515

Please sign in to comment.