SpriteKit is Apple's framework for making 2D games. It has support for sprites and special effects like videos, filters, and masking.
GameplayKit is a framework introduced in iOS 9 that makes implementing many common tasks in your game much easier. GameplayKit is a collection of tools that can help you with features like pathfinding, randomization, state machines, rule systems, and more.
In this introduction, we will focus on Scenes and Nodes of SpriteKit and Agents, Goals, and Behaviors of GameplayKit.
Code can be found at https://github.com/kartikpatel/Combat