Skip to content

goojoob/HexBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

HexBoard

SwiftUI Hexadecimal Keyboard


About HexBoard ⌨️

HexBoard is an Hexadecimal Keyboard for iOS made entirely using SwiftUI 3 and Swift 5.5.1



Usage 🔧

HexBoard is a SwiftUI HexBoardView that is initially positioned off the screen

It needs to be stacked in the last position of a ZStack in order to overlap all the other views when it shows

ZStack {
  //... your views here ...

  HexBoardView()
}

It needs two parameters to work:

  • show: Bool - in order to toggle the view of the HexBoard
  • text: String - the value on which the HexBoard works

Just inject the HexBoard as an Environment Object:

@main
struct HexBoardApp: App {
    @StateObject private var hexBoard = HexBoard()

    var body: some Scene {
        WindowGroup {
            MainView()
                .environmentObject(hexBoard)
        }
    }
}

And use it where needed:

 @EnvironmentObject var hexBoard: HexBoard

TextField("Text", text: $hexBoard.text)

Text(hexBoard.text)

Installation ⚙️

You need all the files (except the MainView that is an example) in your XCode project


HexBoard working in a real iOS App 🔩


Created with 🛠️


Author ✒️

Goojoob.dev - Original development - goojoob


License 📄

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International license (CC BY 4.0).


Thank You 🎁

  • Talk to others about this project 📢
  • We can have a ☕ whenever you want

Releases

No releases published

Packages

No packages published

Languages