Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 35573dd

Browse files
committed
Use -[UIImage imageNamed:inBundle:compatibleWithTraitCollection:] instead of -[UIImage imageNamed:inBundle:withConfiguration:] for compatibility with pre iOS 13 devices. Update podspec version.
1 parent 3ba09b5 commit 35573dd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

GSCXScanner.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "GSCXScanner"
3-
s.version = "3.0"
3+
s.version = "3.0.3"
44
s.summary = "iOS Accessibility Scanner."
55
s.description = <<-DESC
66
iOS Accessibility scanner framework to catch a11y issues during development.
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
99
s.license = "Apache License 2.0"
1010
s.author = "j-sid"
1111
s.platform = :ios, "10.0"
12-
s.source = { :git => "https://github.com/google/GSCXScanner.git", :tag => "3.0.2" }
12+
s.source = { :git => "https://github.com/google/GSCXScanner.git", :tag => "3.0.3" }
1313
s.source_files = "Sources/**/*.{h,m,swift}"
1414
s.resources = "Sources/**/*.{xib}"
1515
s.dependency 'GTXiLib'

Sources/GSCXScannerScreenshotViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ - (void)viewDidLoad {
125125
[NSBundle bundleForClass:[GSCXScannerScreenshotViewController class]];
126126
UIImage *shareImage = [UIImage imageNamed:kGSCXShareIconImageName
127127
inBundle:shareImageBundle
128-
withConfiguration:nil];
128+
compatibleWithTraitCollection:nil];
129129
UIBarButtonItem *shareButton =
130130
[[UIBarButtonItem alloc] initWithImage:shareImage
131131
style:UIBarButtonItemStylePlain

0 commit comments

Comments
 (0)