jfahrenkrug / plswift-2023-demos

Demos for my plSwift 2023 talk "Living dangerously: The why and how of safely using private APIs on iOS"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plSwift 2023 Demos

This repo contains three demo projects that accompany the talk "Living dangerously: The why and how of safely using private APIs on iOS" I (Johannes Fahrenkrug) gave at plSwift 2023.

WKWebViewKeyboardFocus

This project shows how to use method swizzling to enable a behavior in WKWebView: bringing up the keyboard when programatically focussing an input element.

SwiftUITabViewCrash

This project shows how to work around a crash on iOS 16.0 when a SwiftUI TabView has no data to display. It also highlights that the fix needs to be implemented in Objective-C because Swift's error handling behavior is different and thus won't catch the thrown exception.

PushNotificationsTest

This project shows how to instatiate UNNotification objects using a private initializer in order to unit test UNUserNotificationCenterDelegate methods.

Thank You

Thank you to the plSwift organizers for inviting me, thank you to the attendees for kindly and patiently listening to my talk, and thank you to The Smyth Group for sponsoring part of the talk preparation.

About

Demos for my plSwift 2023 talk "Living dangerously: The why and how of safely using private APIs on iOS"

License:MIT License


Languages

Language:Swift 90.6%Language:Objective-C 6.8%Language:HTML 2.6%