nimblehq / VIPER-Templates

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

Omit `return` and remove white space #21

Closed vnntsu closed 4 years ago

vnntsu commented 4 years ago

18

What's Happened

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 }
}

Insight