Boids Unlimited

An implementation of Boids

  • Hosts a MTKView within SwiftUI using an UIViewRepresentable
  • Updates and draws the Boids using a MetalKit compute kernel shader

References and Sources

Inspiriations for starting this project:

Original Boids papers and reference:

I based my implementation off this code:

Extremely Helpful Articles on MetalKit:


Simulator Screen Shot - iPad Air (5th generation) - 2022-03-22 at 20 47 19


View Github