diff --git a/BinaryConverter/BinaryConverter.swift b/BinaryConverter/BinaryConverter.swift
index e1340c0..7a45db8 100644
--- a/BinaryConverter/BinaryConverter.swift
+++ b/BinaryConverter/BinaryConverter.swift
@@ -19,6 +19,9 @@ struct BinaryConverter: View {
Section(header: Text("Base 2")) {
Text("Your number in base 2: \(binaryNumber)")
}
+ Button("Dismiss Keyboard") {
+ UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
+ }
}
.onChange(of: decimalNumber) { newValue in
binaryNumber = convertToBinary(newValue)
diff --git a/BinaryConverter/HexaConverter.swift b/BinaryConverter/HexaConverter.swift
index 7e5eef4..9bfcbcd 100644
--- a/BinaryConverter/HexaConverter.swift
+++ b/BinaryConverter/HexaConverter.swift
@@ -16,14 +16,19 @@ struct HexaConverter: View {
TextField("Enter the base 10 number here", text: $decimalNumber)
.keyboardType(.numberPad)
}
- Section(header: Text("Base 2")) {
+ Section(header: Text("Base 16")) {
Text("Your number in base 16: \(HexadecimalNumber)")
}
+ Button("Dismiss Keyboard") {
+ UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
+ }
}
.onChange(of: decimalNumber) { newValue in
- HexadecimalNumber = convertToBinary(newValue)
+ HexadecimalNumber = convertToHex(newValue)
}
+
}
+
}
#Preview {
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37fd081
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+
+
+
Binary Converter
+
+A simple hex converter for converting decimal to binary/hexadecimal and other base
+
+
+

+

+
+
+## Download
+https://apps.apple.com/fr/app/hexconverter/id6471345416
\ No newline at end of file
diff --git a/resources/logo/logo.png b/resources/logo/logo.png
new file mode 100644
index 0000000..4f29e5e
Binary files /dev/null and b/resources/logo/logo.png differ
diff --git a/resources/store-image/5.5/en-1.png b/resources/store-image/5.5/en-1.png
new file mode 100644
index 0000000..fc5d8b3
Binary files /dev/null and b/resources/store-image/5.5/en-1.png differ
diff --git a/resources/store-image/5.5/en-2.png b/resources/store-image/5.5/en-2.png
new file mode 100644
index 0000000..17425a6
Binary files /dev/null and b/resources/store-image/5.5/en-2.png differ
diff --git a/resources/store-image/5.5/fr-1.png b/resources/store-image/5.5/fr-1.png
new file mode 100644
index 0000000..55e9295
Binary files /dev/null and b/resources/store-image/5.5/fr-1.png differ
diff --git a/resources/store-image/5.5/fr-2.png b/resources/store-image/5.5/fr-2.png
new file mode 100644
index 0000000..8776af3
Binary files /dev/null and b/resources/store-image/5.5/fr-2.png differ
diff --git a/resources/store-image/6.7/en-1.png b/resources/store-image/6.7/en-1.png
new file mode 100644
index 0000000..f8ffd20
Binary files /dev/null and b/resources/store-image/6.7/en-1.png differ
diff --git a/resources/store-image/6.7/en-2.png b/resources/store-image/6.7/en-2.png
new file mode 100644
index 0000000..51248bc
Binary files /dev/null and b/resources/store-image/6.7/en-2.png differ
diff --git a/resources/store-image/6.7/fr-1.png b/resources/store-image/6.7/fr-1.png
new file mode 100644
index 0000000..d97da70
Binary files /dev/null and b/resources/store-image/6.7/fr-1.png differ
diff --git a/resources/store-image/6.7/fr-2.png b/resources/store-image/6.7/fr-2.png
new file mode 100644
index 0000000..de22761
Binary files /dev/null and b/resources/store-image/6.7/fr-2.png differ