Here is my code
var planetNames = ["mercury", "venus", "earth", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"] //names of the planets
for currentRing in 0..<orbitMarkers.count
{
var planetNames[currentRing] = planet(size: 1.2)
}
and here is my class
class planet
{
var size: CGFloat
init(size: CGFloat)
{
self.size = size
}
}
I am trying to figure out how I can make an array of 8 new "planet" objects