mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Automatically copy any url in the pasteboard to the feed field for feed adds
This commit is contained in:
1 parent
c5fed06581
commit
93b702f170
1 file changed
+6
@@ -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