WidGame is an easy way to use SpriteKit for devoloping your own iOS Widgets games.
-
Easily use SpriteKit on your widget
-
Easily change your widget view expandability status("Show More" and "Show Less") and height
-
Easily detect widget events from your scene
public class YourScene: WGScene { }
public class YourWidgetViewController: WGViewController { }
public func presentInitialScene() {
//Override this method to show your first scene
}
func widgetActiveDisplayModeDidChange(_ activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) {
//Add code for when your view change it expandability status
//Don't forget to call super.widgetActiveDisplayModeDidChange(activeDisplayMode, withMaximumSize: maxSize) on your code!
}
func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
//Add code for when your view will change it expandability status
//Don't forget to call super.viewWillTransition(to: size, with: coordinator) on your code!
}