Let’s learn about Key-value observing with Swift 5 and Xcode 10. Key value observer is used to observe for changes on a given variable. Check out this video tutorial.
Type casting in Swift can be little confusing at times. Especially with those syntaxes such as as as? as!. Let’s learn how to type caste between different type of objects in this video lesson. If you like this video lesson please make sure to subscribe to my channel as I’m planning more video tutorials in the future.
Type casting in Swift can be little confusing at times. Especially with those syntaxes such as as as? as!. Let’s learn how to type caste between different type of objects in this video lesson. If you like this video lesson please make sure to subscribe to my channel as I’m planning more video tutorials in the future.
Factory pattern can come in handy when you want to reduce the dependency of a class on other classes. On the other hand, it encapsulates the object creation process and users can simply pass in parameters to a generic factory class without knowing how the objects are actually being created. Also, it gives you a clean code. Let’s begin by ...
Factory pattern can come in handy when you want to reduce the dependency of a class on other classes. On the other hand, it encapsulates the object creation process and users can simply pass in parameters to a generic factory class without knowing how the objects are actually being created. Also, it gives you a clean code. Let’s begin by ...
In order to understand this article, you should have a clear idea of Optionals. If you don’t know what is Optionals in Swift then please read my article on the same topic and come back here. Simple Unwrapping let name : String? = "Jay" if let myName = name {<br /> print(myName) } As we can see above we can ...
In order to understand this article, you should have a clear idea of Optionals. If you don’t know what is Optionals in Swift then please read my article on the same topic and come back here. Simple Unwrapping let name : String? = "Jay" if let myName = name {<br /> print(myName) } As we can see above we can ...
If you are a beginner Optionals can be a bit tricky to understand even though you may have found your way around it. In this article, we gonna look at the underlying principles behind SwiftOptionals. Before beginning, I assume that you know the basics of Swift. If not please follow my YouTube Videos and come back here. One of the ...
If you are a beginner Optionals can be a bit tricky to understand even though you may have found your way around it. In this article, we gonna look at the underlying principles behind SwiftOptionals. Before beginning, I assume that you know the basics of Swift. If not please follow my YouTube Videos and come back here. One of the ...
I recently have done two video tutorials for Swift beginners. If you are brand new to Swift then going through this videos will get you started with Swift. Part 1 Part 2 If you enjoy the videos, do subscribe to my YouTube channel.
I recently have done two video tutorials for Swift beginners. If you are brand new to Swift then going through this videos will get you started with Swift. Part 1 Part 2 If you enjoy the videos, do subscribe to my YouTube channel.
Before start reading this article, I’d highly recommend that you please go ahead and read my following articles. Understand Protocols — iOS Passing data between ViewControllers via Delegate & Protocols As usual lets setup our base protocols and classes as below. I hope the code below is self explanatory if you have read my previous article on Protocol. Let’s create some objects ...
Before start reading this article, I’d highly recommend that you please go ahead and read my following articles. Understand Protocols — iOS Passing data between ViewControllers via Delegate & Protocols As usual lets setup our base protocols and classes as below. I hope the code below is self explanatory if you have read my previous article on Protocol. Let’s create some objects ...
I’m not sure why many developers (even some senior developers) confuse Protocols with Object and Struct. You can think of Protocols as a superclass with some rules. When you conform to that class you’ll have to simply obey those rules. In this case these rules can be methods and properties. Let’s look at an example so you’ll get a clear ...
I’m not sure why many developers (even some senior developers) confuse Protocols with Object and Struct. You can think of Protocols as a superclass with some rules. When you conform to that class you’ll have to simply obey those rules. In this case these rules can be methods and properties. Let’s look at an example so you’ll get a clear ...
So you’ve been trying to set custom layouts on run time on a UICollectionView or you were trying to change the UICollectionView’s cell count per row. But you’ve realised that it eventually crashes instead of getting what you want done. It’s mainly because you need to invalidate your UICollectionView’s layout. It can be simply done by calling the line below ...
So you’ve been trying to set custom layouts on run time on a UICollectionView or you were trying to change the UICollectionView’s cell count per row. But you’ve realised that it eventually crashes instead of getting what you want done. It’s mainly because you need to invalidate your UICollectionView’s layout. It can be simply done by calling the line below ...
This is a simple walkthrough on how to do the loader animation or Sprite animation in WatchOS using Swift. If you are using this animation as a loader animation, then probably you need to put them inside a group and hide them when the pending data becomes available. E.g. once the CoreData retrieval is successful or once the data received form the web service.
This is a simple walkthrough on how to do the loader animation or Sprite animation in WatchOS using Swift. If you are using this animation as a loader animation, then probably you need to put them inside a group and hide them when the pending data becomes available. E.g. once the CoreData retrieval is successful or once the data received form the web service.
Last couple of days, the buzzword of Sri Lankan IT industry is “CEPA”. So what’s the deal with it? Why Sri Lankan government is hell bent on bringing this agreement with India? Is it really going to help Sri Lanka? There is so much of unexplored territory in this agreement. Let’s try to understand this CEPA or whatever the name ...