Skip to content

Modernize app for new iOS versions#3

Merged
ppaulojr merged 3 commits intomasterfrom
copilot/modernize-app-for-ios
Mar 9, 2026
Merged

Modernize app for new iOS versions#3
ppaulojr merged 3 commits intomasterfrom
copilot/modernize-app-for-ios

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 9, 2026

App targets iOS 8 and uses APIs removed in modern iOS (UIWebView removed in iOS 14.5, Twitter/Social frameworks deprecated). Cannot build or submit to App Store.

UIWebView → WKWebView

CountryInfoWebView changed from UIWebView subclass to UIView with an internal WKWebView (composition). Direct subclassing won't work—+layerClass override for CAGradientLayer conflicts with WKWebView internals.

@interface CountryInfoWebView : UIView
@property (nonatomic, readonly) UIScrollView *scrollView;
- (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL;
@end

Both storyboards updated: <webView><view customClass="CountryInfoWebView">.

Frameworks

  • Added: WebKit.framework
  • Removed: Twitter.framework, Social.framework (8 pbxproj references)

Deployment target: 8.0 → 13.0

  • project.pbxproj (4 locations), Podfile

Dead code removal

  • SYSTEM_VERSION_LESS_THAN macro and all iOS 7 branches in AppDelegate, TopBarView, CountryInfoViewController_iPhone
  • Twitter.h import and runtime NSClassFromString check in sharing category

Info.plist

  • Removed CFBundleSignature, UIPrerenderedIcon
  • armv7arm64 in UIRequiredDeviceCapabilities
  • Added UILaunchStoryboardName

LaunchScreen.storyboard

Replaces legacy Default*.png launch images. Removed ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME from build settings.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits March 9, 2026 13:25
- Migrate UIWebView to WKWebView (composition pattern with UIView container)
- Add WebKit.framework, remove deprecated Twitter.framework and Social.framework
- Update deployment target from iOS 8.0 to iOS 13.0
- Remove legacy iOS 7 version checks (SYSTEM_VERSION_LESS_THAN macro)
- Add LaunchScreen.storyboard, remove legacy launch image settings
- Modernize Info.plist (remove CFBundleSignature, UIPrerenderedIcon, update armv7→arm64)
- Update storyboards to use UIView instead of deprecated webView element
- Simplify sharing code to use UIActivityViewController directly
- Update prefix header iOS version check

Co-authored-by: ppaulojr <1206478+ppaulojr@users.noreply.github.com>
…View access

Co-authored-by: ppaulojr <1206478+ppaulojr@users.noreply.github.com>
Copilot AI changed the title [WIP] Update app for compatibility with new iOS versions Modernize app for new iOS versions Mar 9, 2026
@ppaulojr ppaulojr marked this pull request as ready for review March 9, 2026 16:20
@ppaulojr ppaulojr merged commit 739dae5 into master Mar 9, 2026
@ppaulojr ppaulojr deleted the copilot/modernize-app-for-ios branch March 9, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants