https://www.hackingwithswift.com/100/67
Includes solutions to the challenges.
Bonus:
- Swipe to delete from table
Safari Extensions, NSExtensionItem, UITextView, NotificationCenter
From Hacking with Swift:
- Add a bar button item that lets users select from a handful of prewritten example scripts, shown using a UIAlertController – at the very least your list should include the example we used in this project.
- You're already receiving the URL of the site the user is on, so use UserDefaults to save the user's JavaScript for each site. You should convert the URL to a URL object in order to use its host property.
- For something bigger, let users name their scripts, then select one to load using a UITableView.