docs: 📝 Create basic readme
Create readme and add all assets
@ -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)
|
||||
|
@ -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 {
|
||||
|
13
README.md
Normal file
@ -0,0 +1,13 @@
|
||||
<p align="center">
|
||||
<img src="./resources/logo/logo.png" height=auto width=50%/>
|
||||
<h1><center>Binary Converter</center></h1>
|
||||
</p>
|
||||
A simple hex converter for converting decimal to binary/hexadecimal and other base
|
||||
|
||||
<div style="display: flex;">
|
||||
<img src="./resources/store-image/6.7/en-1.png" style="width: 50%;"/>
|
||||
<img src="./resources/store-image/6.7/en-2.png" style="width: 50%;"/>
|
||||
</div>
|
||||
|
||||
## Download
|
||||
https://apps.apple.com/fr/app/hexconverter/id6471345416
|
BIN
resources/logo/logo.png
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
resources/store-image/5.5/en-1.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
resources/store-image/5.5/en-2.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
resources/store-image/5.5/fr-1.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
resources/store-image/5.5/fr-2.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
resources/store-image/6.7/en-1.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
resources/store-image/6.7/en-2.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
resources/store-image/6.7/fr-1.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
resources/store-image/6.7/fr-2.png
Normal file
After Width: | Height: | Size: 53 KiB |