You can do it by converting them to Sets.
var arrayOne = [1,2,3,4,5,6,7,8]
var arrayTwo = [1,2,4,5,6,7]
let set1:Set = Set(arrayOne)
let set2:Set = Set(arrayTwo)
Use ExclusiveOr to do this.
//Swift 2.0
set1.exclusiveOr(array2) // result = {3,8}
//Swift 3.0
set1.symmetricDifference(set2) // result = {3,8}
This link might useful for you: Set operations (union, intersection) on Swift array?
also possible Duplicate as @user3589771 said.