Skip to content

Commit

Permalink
Removed unnecessary padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ApplebaumIan committed Feb 7, 2021
1 parent 054b610 commit fd6633e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Sources/SwiftUI Apple Watch Decimal Pad/DigetPadView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct DigiTextView: View {
}.buttonStyle(TextViewStyle(alignment: align))
.sheet(isPresented: $presentingModal, content: {
EnteredText(text: $text, presentedAsModal: $presentingModal)
})
})
}
}
@available(iOS 13.0, watchOS 6.0, *)
Expand Down Expand Up @@ -201,7 +201,11 @@ struct EnteredText_Previews: PreviewProvider {

struct Content_View_Previews: PreviewProvider {
static var previews: some View{
DigiTextView(placeholder: "boop placeholder", text: .constant(""), presentingModal: true)
VStack {
ForEach(/*@START_MENU_TOKEN@*/0 ..< 5/*@END_MENU_TOKEN@*/) { item in
DigiTextView(placeholder: "boop placeholder", text: .constant(""), presentingModal: true)
}
}
}
}
#endif
3 changes: 0 additions & 3 deletions Sources/SwiftUI Apple Watch Decimal Pad/Modifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ struct TextViewStyle: ButtonStyle {
.frame(width: geometry.size.width, height:geometry.size.height)
}
})
.padding()
.padding(.vertical, 10.0)
// .frame(width: geometry.size.width)

}

Expand Down

0 comments on commit fd6633e

Please sign in to comment.