Site icon

Dot Globe – Dotted Globe for Swift

A SceneKit and Metal Powered interactive globe for UIKit and SwiftUI

Dot Globe Features


Dot Globe Usage


import UIKit
import DotGlobe

class ViewController: UIViewController {
    override func viewDidLoad() {
      // initialize controller here
       let globeController = GlobeViewController()
       globeController.earthColor = UIColor(red: 0.0, green: 0.482, blue: 0.871, alpha: 1.0)
       globeController.glowColor = UIColor(red: 0.0, green: 0.22, blue: 0.482, alpha: 1.0)
       globeController.reflectionColor =  UIColor(red: 0.0, green: 0.482, blue: 0.871, alpha: 1.0)
       present(globeController, animated: true, completion: nil)



import SwiftUI
import DotGlobe

struct ContentView: View {
    var body: some View {

You can use all the parameters above to customize the globe. Because of the performance issues, you have to specify everything before dots and globe gets rendered, or dot cloud causes a massive rendering issue.

Dot Globe on GitHub:
Platform: iOS
⭐️: 54
Exit mobile version