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.
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 ...
It’s been a week now since the Netflix launched to 130 countries around the globe including Sri Lanka. Right after the launch of Netflix in Sri Lanka, I started using their service. Let me share my experience with you in Sri Lankan context. I hope if you are going to buy a new Netflix account, this article will help you ...
YouTube is the de facto video streaming site online. It’s huge compared to competitors such as Vimeo. YouTube has been offering the streaming service on top of Adobe Flash all these days though HTML5 player was offered as an alternative option, which users have to enable. Flash has proven to be buggy and it failed to cope up with the ...
Checkout this simple tutorial on how to use Google fonts with Ultimatum Theme. Ultimatum Theme framework has built in support for Google fonts. You will need to know how to enabled them and how to set it up with certain elements in your blog. Checkout this awesome YouTube tutorial which explains the process.
Clickdesk is a wonderful tool that would help you to chat with your visitors on your website. Yeah it’s ideal for hosting companies or related service providers as they can reach out their potentials clients and accelerate the decision making process. Since Divi 2.o is a custom theme, once you enable page builder, clickdesk will stop working. Clickdesk and Divi doesn’t ...
Back in 2013 due to the policy changes at the place I used to work, we all shifted our PCs from Windows to Ubuntu. Initially it was a nightmare. I couldn’t do anything at all. I had to keep searching for tips and tricks for the problem that I encounter while Using ubuntu. Here I’m going to share some of ...
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.
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.
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 ...
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.
Checkout this simple tutorial on how to use Google fonts with Ultimatum Theme. Ultimatum Theme framework has built in support for Google fonts. You will need to know how to enabled them and how to set it up with certain elements in your blog. Checkout this awesome YouTube tutorial which explains the process.
Clickdesk is a wonderful tool that would help you to chat with your visitors on your website. Yeah it’s ideal for hosting companies or related service providers as they can reach out their potentials clients and accelerate the decision making process. Since Divi 2.o is a custom theme, once you enable page builder, clickdesk will stop working. Clickdesk and Divi doesn’t ...
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.