nimblehq / VIPER-Templates

Xcode files templates for various parts of VIPER module
5 stars 1 forks source link

Omit `return` word following Swift 5.1 release #18

Closed teamdisc closed 4 years ago

teamdisc commented 4 years ago

As we discussed, we might need to update our template to omit return here a bit. What we are currently doing:

var input: ModuleInput { 
    return presenter
}

var output: ModuleOutput {
    get { return presenter.output }
    set { presenter.output = newValue }
}

And what we could do with Swift 5.1

var input: ModuleInput { presenter }

var output: ModuleOutput {
    get { presenter.output }
    set { presenter.output = newValue }
}
nmint8m commented 4 years ago

Agree. 👍