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

About

SwiftUI Hexadecimal Keyboard

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages