| | |
| | | @Environment(\.presentationMode) var presentationMode |
| | | |
| | | var title = "" |
| | | var iconBack = IconBack(); |
| | | var iconBack = Icons.BACK; |
| | | var imgRight = ""; |
| | | var titleColor = Color.colorText |
| | | |
| | |
| | | print("Click back button") |
| | | self.presentationMode.wrappedValue.dismiss() |
| | | }) { |
| | | iconBack.stroke(Color.primary, lineWidth: 2.5).frame(width: 18,height: 14) |
| | | Image(systemName: iconBack.name) |
| | | .resizable() |
| | | .frame(width: iconBack.size.width, height: iconBack.size.height) |
| | | .aspectRatio(contentMode: .fit) |
| | | .foregroundColor(Color.white) |
| | | } |
| | | Spacer() |
| | | Text(title).foregroundColor(titleColor) |