Skip to content

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

License

Notifications You must be signed in to change notification settings

jfahrenkrug/plswift-2023-demos

Repository files navigation

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"

Resources

License

Stars

Watchers

Forks