w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
The Swift Programming Language Enumerations Experiment

You can pass enums by just passing the enum name:

// someRank is a Rank enum value
func myFunction (someRank: Rank) -> () {

}

And then you can just call it:

myFunction(Rank.Ace)




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.