| | |
| | | @Environment(\.presentationMode) var presentationMode |
| | | |
| | | var title = "" |
| | | var imgLeft = "IconBack"; |
| | | var iconBack = IconBack(); |
| | | var imgRight = ""; |
| | | var titleColor = "ColorText" |
| | | var titleColor = Color.colorText |
| | | |
| | | var body: some View { |
| | | |
| | |
| | | print("Click back button") |
| | | self.presentationMode.wrappedValue.dismiss() |
| | | }) { |
| | | Image(imgLeft) |
| | | .frame(width: 28,height: 28) |
| | | iconBack.stroke(Color.primary, lineWidth: 2.5).frame(width: 18,height: 14) |
| | | } |
| | | Spacer() |
| | | Text(title).foregroundColor(Color.init(titleColor)) |
| | | Text(title).foregroundColor(titleColor) |
| | | .bold().font(Font.system(size: 16)) |
| | | Spacer() |
| | | Image(imgRight).frame(width: 28,height: 28) |