Skip to content

Instantly share code, notes, and snippets.

View MarcJacques's full-sized avatar

Marc Jacques MarcJacques

View GitHub Profile
import UIKit
func numberOfVowels(in string: String) -> Int {
var vowelCount = 0
for vowels in string.lowercased() {
switch vowels {
case "a", "e", "i", "o", "u":
vowelCount += 1
default:
()