mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +01:00
Automatically copy any url in the pasteboard to the feed field for feed adds
This commit is contained in:
parent
c5fed06581
commit
93b702f170
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user