Skip to content

Commit 7a00ea9

Browse files
authored
Bump to 0.2.1 (#195)
1 parent dd06d8b commit 7a00ea9

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Changelog
33

44
## master
55

6+
## [0.2.1]
7+
8+
- Fixed: memory leak in #161 and regression in #194 (#192)
9+
610
## [0.2.0]
711

812
- Added: `introspectCollectionView/introspectCollectionViewCell` (#169)

Introspect.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'Introspect'
3-
spec.version = '0.2.0'
3+
spec.version = '0.2.1'
44
spec.license = { type: 'MIT' }
55
spec.homepage = 'https://github.com/siteline/SwiftUI-Introspect.git'
66
spec.authors = { 'Lois Di Qual' => '[email protected]' }

Introspect/UIKitIntrospectionView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ public struct UIKitIntrospectionView<TargetViewType: UIView>: UIViewRepresentabl
6363
return view
6464
}
6565

66-
/// In some cases, UIView does not call `moveToWindowHandler`,
67-
/// so the `moveToWindowHandler` call in updateUIView must be preserved.
66+
/// SwiftUI state changes after `makeUIView` will trigger this function, not
67+
/// `makeUIView`, so we need to call the handler again to allow re-customization
68+
/// based on the newest state.
6869
public func updateUIView(
6970
_ uiView: IntrospectionUIView,
7071
context: UIViewRepresentableContext<UIKitIntrospectionView>

Introspect/UIKitIntrospectionViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public struct UIKitIntrospectionViewController<TargetViewControllerType: UIViewC
5252
return viewController
5353
}
5454

55-
/// If you find that the `moveToWindowHandler` is not called in certain situations (which has not been discovered yet),
56-
/// you can add code to call the `moveToWindowHandler` in the function body.
55+
/// SwiftUI state changes after `makeUIViewController` will trigger this function, not
56+
/// `makeUIViewController`, so we need to call the handler again to allow re-customization
57+
/// based on the newest state.
5758
public func updateUIViewController(
5859
_ viewController: IntrospectionUIViewController,
5960
context: UIViewControllerRepresentableContext<UIKitIntrospectionViewController>

0 commit comments

Comments
 (0)