Swift Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```swift []\nclass Solution {\n    func isGoodArray(_ nums: [Int]) -> Bool {\n            func gcd(_ a: Int, _ b: Int) -> Int {\n        return b == 0 ? a : gcd(b, a % b)\n    }\n    \n    var result = nums[0]\n    \n    for num in nums {\n        result = gcd(result, num)\n        \n        if result == 1 {\n            return true\n        }\n    }\n    \n    return result == 1\n    }\n}\n```
['Swift']