There's some variable those are set on init and you can remove ! when you declare on the class because they will never be nil anyway unless you set it but no where you set it.
var string: String!
init() {
self.string = "hello"
}
Also there're some variable those are declare with var instead of let even they are not mutating eg like the example above it can be declare with let instead of var to avoid mutating by other people working on the same project
init
and you can remove!
when you declare on the class because they will never be nil anyway unless you set it but no where you set it.var
instead of let even they are not mutating eg like the example above it can be declare withlet
instead ofvar
to avoid mutating by other people working on the same project