https://youtu.be/LdIib-SrOmk The transcript of the video If we need a URL, we initialize it using the following syntax: var url = URL(string: "http://www.leakka.com") That’s pretty straightforward, but wouldn’t it be cool to create a url just like this: var url = "http://www.leakka.com" ? If we tried that, we’d get a compiler error. Actually, we can make it work with just a little bit of coding. And here’s how! Swift has a protocol called ExpressibleByStringLiteral. If we make a type adapt it, we can create instances of that type from a string. Here’s the official documentation: https://developer.apple.com/documentation/swift/expressiblebystringliteral ExpressibleByStringLiteral A type [...]
https://youtu.be/9vWQKXLENdo The book "Software Development from A to Z" is available on - Amazon: https://www.amazon.com/dp/B07DV2X2HQ - and iTunes https://itunes.apple.com/us/author/karoly-nyisztor/id1345964804?mt=11 You can also check out the companion eCourse. I offer a huge discount to my readers. Click here to enroll for just $9.99.
There’s more content coming, so be sure to subscribe to my Youtube channel. https://youtu.be/LE7tTYIrggg Here’s the transcript of the video. Today we’re gonna take a look at the Natural Language framework. Apple introduced this cross-platform framework this June at the developer conference. […]
Do you want to become a better software developer? If you said yes, these offers will probably interest you. In these three courses, I share practical knowledge that can be applied instantly. 1. Software Development from A to Z Get insights into the software development industry. You will acquire professional and technical skills together with an understanding of what software development is. Click here to enroll for just $9.99 2. UML and Object-Oriented Design Foundations Learn about the fundamentals of Object-Orientation, the programming paradigm used to build every modern software system. We also delve into UML, the communication standard that every software [...]
You'll only be able to effectively apply POP-principles if you understand how protocol extensions, protocol composition, and protocol inheritance works. In this short video, I talk about protocol inheritance. https://youtu.be/6LDvgJhK2oI Are you interested in Swift and Protocol-Oriented Programming? Check out my recently published course "Swift 4: Protocol-Oriented Programming" available on LinkedIn Learning: https://www.linkedin.com/learning/swift-4-protocol-oriented-programming and on Lynda: https://www.lynda.com/course-tutorials/Swift-4-Protocol-Oriented-Programming/633857-2.html
Help me reach my goal by subscribing to my Youtube channel Swift Programming Tutorials I upload new, mostly Swift programming related content on a regular basis.