Jak mogę zadeklarować adres URL w wersji 3?Zgłaszanie adresu URL w Swift 3
To moja próba Kod:
var messageURL: URL = URL()
LUB
var messageURL: Foundation.URL = URL()
Jest to błąd: Nie można powoływać się inicjator dla typu 'url' bez argumentów
Oto niektóre dokumentacja (Swift 3.0) firmy Apple, z którymi mam problemy z implementacją:
Properties whose name conflicts with Foundation types after removing their NS prefix will lead to module-qualified type names. For example, if there is a var URL: NSURL, it will be rewritten as var URL: Foundation.URL