mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Automatically copy any url in the pasteboard to the feed field for feed adds
This commit is contained in:
@@ -34,6 +34,12 @@ class AddFeedViewController: UITableViewController, AddContainerViewControllerCh
|
||||
|
||||
super.viewDidLoad()
|
||||
|
||||
if initialFeed == nil, let urlString = UIPasteboard.general.string as NSString? {
|
||||
if urlString.rs_stringMayBeURL() {
|
||||
initialFeed = urlString.rs_normalizedURL()
|
||||
}
|
||||
}
|
||||
|
||||
urlTextField.autocorrectionType = .no
|
||||
urlTextField.autocapitalizationType = .none
|
||||
urlTextField.text = initialFeed
|
||||
|
||||
Reference in New Issue
Block a user