Swift cleanup: remove duplicate or unnecessary initializers using default values
Signed-off-by: Bryan Montz <bryanmontz@me.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
6bf5293701
commit
0f1390f412
@@ -10,11 +10,7 @@ import SwiftUI
|
||||
struct EndBlock: View {
|
||||
let height: CGFloat
|
||||
|
||||
init() {
|
||||
self.height = 10.0
|
||||
}
|
||||
|
||||
init(height: Float) {
|
||||
init(height: Float = 10) {
|
||||
self.height = CGFloat(height)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user