You declare a local constant within offlineListing(_:), but it is not used and the value is disposed at the end of the method.
(You would have seen a waring Initialization of immutable value 'productURLField' was never used; consider replacing with assignment to '_' or removing it, which should not be ignored.)
Even if the local constant and the IBOutlet have exactly the same identifier, they are two different things and have nothing to do with each other.
You may want to do something like this:
@IBAction func offlineListing(_ sender: Any) {
productURLField.text = "N/A"
}
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: