Commit af53453b authored by Oliver Wiese's avatar Oliver Wiese

improve supporting views and new send mail icon

parent 5b5618ee
......@@ -69,7 +69,7 @@ struct Inbox: View {
private var composeButton: some View {
Button(action: self.coord.pushComposeView, label: {
Image(systemName: "message").imageScale(.large)
Image(systemName: "square.and.pencil").imageScale(.large)
})
}
......
......@@ -10,11 +10,19 @@ import SwiftUI
struct CircleImage: View {
var image: Image
var radius: CGFloat = 60
var body: some View {
image
.clipShape(Circle())
.overlay(Circle().stroke(Color.white, lineWidth: 4))
.shadow(radius: 10)
.resizable()
.frame(width: radius, height: radius)
.shadow(radius: 5)
}
struct CircleImage_Previews: PreviewProvider {
static var previews: some View {
CircleImage(image: PseudoContact.makeImg("Alice", color: .red))
}
}
}
......@@ -25,6 +25,7 @@ struct Stroke: View{
.strokedPath(StrokeStyle(lineWidth: self.lineWidth))
.foregroundColor(self.color)
.offset(y: self.offsetY)
.frame(width: geometry.size.width, height: self.lineWidth)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment