Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benlellouch committed May 5, 2023
1 parent a2d9b73 commit 2234d05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Kitchen Converter/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ struct ContentView: View {
}
return fs
}

var body: some View {
VStack {
VStack{
Text("Unit Converter")
.font(.largeTitle)
.fontWeight(.black)
.font(.largeTitle)
.fontWeight(.black)
Text("Kitchen Essentials")
.font(.title3)
.fontWeight(.semibold)
Expand All @@ -91,7 +91,7 @@ struct ContentView: View {
HStack{
Text("From")
.font(.headline)


Picker("From",selection: $from) {
ForEach(ContentView.units){ unit in
Expand All @@ -117,17 +117,17 @@ struct ContentView: View {

Text("\(from.symbol)")
.font(.headline)

Text("➡️")

Text("\( String(format: "%.2f", output))").padding(6)
.overlay(
RoundedRectangle(cornerRadius: 4)
.stroke(.gray, lineWidth: 1)
)
Text("\(to.symbol)")
.font(.headline)

}
}.padding()
Spacer()
Expand Down

0 comments on commit 2234d05

Please sign in to comment.