Context When working on Swift protocols, you might need to use generic types as a variable. Swift compiler can understand when you provide a protocol as a variable, but what if you want to use a type? Here is an example of implementing a data structure based on protocols. protocol A { } protocol B…

Read More

SpriteKit is an Apple framework originally designed for 2D video games, with a physics engine, sprites, particles and sound effects. This framework, largely inspired by Cocos2D, is a great tool to design and create a game app. It is easy to use, the Apple documentation is (as usual) comprehensive, and you can find tons of tutorials on the internet.…

Read More