Swift version: 5.6
If you’re still using the deprecated
Here's an example that pulls out the current page's title:
Note: if you're using a
WKWebView you can use its
title property directly to get the same thing.
SPONSORED Thorough mobile testing hasn’t been efficient testing. With Waldo Sessions, it can be! Test early, test often, test directly in your browser and share the replay with your team.
Sponsor Hacking with Swift and reach the world's largest Swift community!
Available from iOS 2.0
This is part of the Swift Knowledge Base, a free, searchable collection of solutions for common iOS questions.
Link copied to your pasteboard.