Code

Four Dots | iOS Universal Endless Board Game Template (Swift)

Four Dots | iOS Universal Endless Board Game Template (Swift)









10 April 2018
• Updated to Xcode 9.3
29 September 2017
• Updated to Xcode 9, Swift 4, iOS 11
• Set Swift 3 @objc Inference as Default in Build Settings
• Added a 1125x2436px png image (iPhone X launch image) into Assets.xcassets -> LaunchImage image set
• Adjusted some views in the Storyboard, because of iPhone X layout 
• Edited the 'func showBanner()' methods in order to display banner ads properly in iPhone X
• Unchecked the Runtime API Checking | Main Thread Checker in Edit Scheme -> Diagnostics, accordingly to this post: https://stackoverflow.com/a/44392584/3724800


Four Dots is a 1-tap nice endless Universal game template where you have to turn a rose of 4 circles and match the color of the dots that fall down the screen when they collide with those circles. Dots get randomly generated, you get more dots while collecting more score points so you must be quick and tap anywhere on the screen to catch all the right dots.

Four Dots has a Game Center Leaderboard for best score, Swift language, native XCode project.
It’s a simple game, yet very addictive!


I’m new to Xcode UI interface, any help?

Sure, start by reading this tutorial, it will surely help you get familiar with Xcode and its UI interface: https://hubpages.com/technology/iOS-About-Xcode-and-its-interface

How do I setup the Game Center Leaderboard on iTunes Connect?

Check this video out: https://youtu.be/4QwjqFpBm_k

I get a Code signing error in Xcode 8.x

That’s a bug of Xcode 8 with macOS Sierra, check this sample video to see how to fix it: https://youtu.be/z2LemT1_LqA

How to remove AdMob banner ads

Check this video out to see how to remove the code that shows AdMob banners: https://youtu.be/e-HQYnta2Jg Keep in mind that you must repeat the shown steps for every .swift file that contains this line on the top:
import GoogleMobileAds

What about free support for this template?

I can offer free support for bugs encountered in the original code. Instead, if you’ve edited the code and messed something up with it, I may apply some fee to fix it either via TeamViewer or by checking your app project files directly on my computer.

Should I use the latest version of Xcode to edit this template?

Yes, I always update my apps to the latest version of the IDE.







  • XCode 9.x project – Swift – 64bit
  • Native UIKit game (NO Cocos2D)
  • iOS 8.0+ – Storyboards – Universal
  • AdMob banners
  • Game Center Leaderboard for Best Score
  • Share Your Scores on Twitter, Facebook, Mail, etc.
  • User Guide and PSD files included
  • Easy to customize, endless game


  • Apple Mac with its latest OS version installed
  • The latest version of Xcode and some knowledge about its UI interface
  • Photoshop or any other image editor software
  • An Apple Developer account to submit apps to the App Store
  • An AdMob account to generate your own banner UNIT ID








by
by
by
by
by
by