port
The port number URL component, or nil if not present.
Declaration
@NSCopying var port: NSNumber? { get set }Discussion
For example, in the URL http://www.example.com:8080/index.php, the port number is 8080.
If you attempt to set the port to a negative port number, this class throws an exception.