Let\'s say I have a class:
class Fruit { var fruitName: String init(getFruit name: String) { fruitName = name } }
Is ther
To my knowledge, there is absolutely no difference.
It is generally convention in Swift to call the constructor without the .init This is the 'swiftier' shorthand.
.init