According to this answer, to obtain the maximum of an array we can do:
let nums = [1, 6, 3, 9, 4, 6]; let numMax = nums.reduce(Int.min, { max($0, $1) })
Swift 2:
var graphPoints:[Int] = [4, 2, 6, 4, 5, 8, 3] let maxValue = graphPoints.maxElement()