| | |
| | | @Environment(\.presentationMode) var presentationMode |
| | | |
| | | var title = "" |
| | | var imgLeft = "IconBack"; |
| | | var iconBack = Icons.BACK; |
| | | 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) |
| | | Image(systemName: iconBack.name) |
| | | .resizable() |
| | | .frame(width: iconBack.size.width, height: iconBack.size.height) |
| | | .aspectRatio(contentMode: .fit) |
| | | .foregroundColor(Color.white) |
| | | } |
| | | 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) |