earthmap.mp4
Usage
UIKit
A SceneKit and Metal Powered interactive globe for UIKit and SwiftUI
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)
}
}
Customization:
import SwiftUI
import DotGlobe
struct ContentView: View {
var body: some View {
GlobeView()
}
}
With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...
Install Swift Package Manager Open Xcode, go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/akardas16/SideMenu.git as Branch main You need to add import ...
Modeling Custom Types with Structures and Classes In Swift, structures (struct) and classes (class) are the two primary building blocks ...