Releases: nalexn/ViewInspector
0.9.3
Released on 2022-12-25.
What's new:
0.9.2
Released on 2022-09-17.
Requires Xcode 14.0
What's new:
-
Adds support for SwiftUI 4.0
-
New APIs:
find(viewWithAccessibilityLabel: )
andfind(viewWithAccessibilityIdentifier: )
(PR #168)axes: Axis.Set
andshowsIndicators: Bool
inspectable attributes onScrollView
callOnSubmit
inspection of theonSubmit
modifier (PR #184)primaryAction
inspection support onMenu
(#183)- Inspectable attributes on
Rotation3D
(PR #191) Label(_:systemImage:)
inspection (#176)
-
Fixes and PRs:
0.9.1
Released on 2021-12-30.
Requires Xcode 13.2
What's new:
-
Added inspection support for:
-
New APIs:
Fixes and PRs:
- Fixed 'Cannot find 'XCTFail' in scope' when integrating with CocoaPods (#145)
- Fixed
actualView()
not injecting EnvironmentObjects (issue #149, PR #150) - Fixed
find().actualView()
gets type mismatch error on a nested view type within a custom generic container (#138)
Happy coming New Year!
0.9.0
Released on 2021-09-19.
Requires Xcode 13.0
What's new:
- Added watchOS support (#125)
- Existing inspection code updated for iOS 15 (#128)
- Added support for
Toolbar
- Added support for
safeAreaInset
overlay - Added support for
confirmationDialog
Inspector.print(:)
is made public for easier view debugging
Breaking changes:
Fixes and PRs:
navigationBarItems
no longer block the inspection starting from iOS 15 (#29)- Fixed
Inspector.print(:)
cyclic recursion (#105) - Fixed "callOnChange is not found on _ConditionalContent" (#126)
- Fixed
Shape
views being reported as blockers for search (#133) - Merged PR #132: Adds support for FullScreenCover
- Merged PR #124: Include ToolBarItem in readiness.md
0.8.1
0.8.0
Released on 2021-06-15.
-
Inspection of a custom
ViewModifier
is now fully aligned with a customView
inspection and is devoid of some shortcomings. Your existing tests won't break, but if you choose to migrate to the new one - please refer to the guide for updated snippets for theclass Inspection
. Kudos to @gili-labs for playing an essential role in the research and development of this feature. -
A
View
that has applied customViewModifier
now inherits view and environment modifiers applied inside that customViewModifier
. See the example below:
struct MyModifier: ViewModifier {
func body(content: Self.Content) -> some View {
content
.padding(.top, 15)
}
}
let view = Text("Hi").modifier(MyModifier())
Before: Text
would report it has no padding
modifier applied.
Now: Text
reports the padding
applied from inside the MyModifier
.
0.7.7
0.7.6
Released on 2021-05-23.
-
Added support for inspecting
Alert
,ActionSheet
andSheet
. Instructions are provided in the guide. -
New
func isResponsive() -> Bool
for checking if the control is responsive to the user's touch input. -
All controls that are
disabled
,hidden
or withallowsHitTesting(false)
now throw an exception on attempt to programmatically trigger a user interaction. -
Many of the view modifiers that impose their effect on the enclosed hierarchy, such as
hidden
, are now associated with the inner views as well. -
Merged PR #107: Disabled
Button
throws an exception ontap
attempt. -
Merged PR #109: Added API for selecting a date with
DatePicker
-
Fixed #104