{"id":19510684,"url":"https://github.com/meta-ben/swifttoolboard","last_synced_at":"2025-10-07T14:26:26.940Z","repository":{"id":48769897,"uuid":"120206782","full_name":"Meta-Ben/SwiftToolBoard","owner":"Meta-Ben","description":"Swift framework to add a toolbar above the keyboard","archived":false,"fork":false,"pushed_at":"2024-07-15T22:46:56.000Z","size":58,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-01T03:51:56.028Z","etag":null,"topics":["ios","plugin","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Meta-Ben.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-04T17:30:37.000Z","updated_at":"2024-07-16T00:59:18.000Z","dependencies_parsed_at":"2024-08-04T17:04:43.252Z","dependency_job_id":null,"html_url":"https://github.com/Meta-Ben/SwiftToolBoard","commit_stats":null,"previous_names":["meta-ben/swifttoolboard"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Meta-Ben/SwiftToolBoard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FSwiftToolBoard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FSwiftToolBoard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FSwiftToolBoard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FSwiftToolBoard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meta-Ben","download_url":"https://codeload.github.com/Meta-Ben/SwiftToolBoard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FSwiftToolBoard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278788528,"owners_count":26045995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","plugin","swift"],"created_at":"2024-11-10T23:16:44.584Z","updated_at":"2025-10-07T14:26:26.896Z","avatar_url":"https://github.com/Meta-Ben.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e:iphone: SwiftToolBoard :iphone:\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/IOS-%204--2--1?style=for-the-badge\u0026label=platform\u0026color=blue\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift-%204--2--1?style=for-the-badge\u0026label=language\u0026color=orange\"\u003e\n\u003c/p\u003e\n\nSwift framework to add a toolbar above the keyboard\n\n## Preview\nPreview broken\n\n\u003ch2\u003e How to install \u003c/h2\u003e\n\nAdd this line into your Podfile\n```\npod 'SwiftToolBoard', :git =\u003e 'https://github.com/Happeal/SwiftToolBoard.git'\n```\nthen run `pod install`\n\nAfter that go in your project and launch `Product -\u003e Build` to add the framework into your project\n\n\u003ch2\u003e How to use \u003c/h2\u003e\n\nstart by adding `import SwiftToolBoard`\n\nthen, you can instantiate the `ToolBoard`\n\nUse exemple :\n\n```swift\nimport UIKit\nimport SwiftToolBoard\n\nclass ViewController : UIViewController {\n  \n  @IBOutlet weak var myTextBox : UITextField!\n  \n  override func viewDidLoad() {\n    super.viewDidLoad()\n    let tB = ToolBoard()\n    tB.changeItemNumber(number: 20)\n    \n    myTextBox.inputAccessoryView = tB\n  }\n\n\n}\n```\n\nThere is 3 constructor :\n```swift\n//Instantiate without item and with all default param\nlet tB = ToolBoard()\n\n//Instantiate with 20 item\nlet tB = ToolBoard(itemNumber : 20)\n\n//Instantiate the toolboard with 20 item and a specific cell create by you\nlet tB = ToolBoard(itemNumber : 20, cellNibName: \"MyCellView\", reuseCellIdentifier: \"myCellReuseId\")\n```\n\nYou can use many function to change the toolboard you can create whatever you want ( even a form into the keyboard like an option menu with button into cells )\n\n\n\u003ch2\u003e How to implement delegate methods \u003c/h2\u003e\n\nThere is two delegate method to implement : ( Exemple )\nbefore you need to tell that the controller is the delegate\n```swift\noverride func viewDidLoad() {\n//viewDidLoad code\nlet tB = ToolBoard()\n\ntB.delegate = self\n//viewDidLoad code\n}\n```\n\nwhen its done you need to extend your controller like this :\n```swift\nextension ViewController:  ToolBoardDelegate {\n  \n  func toolBoard(_ toolBoard: ToolBoard, cellForItem cell: UICollectionViewCell, indexPath : IndexPath) {\n  //Put here you're code ( this method will be call every time the collectionView into the toolboard iterate on these cell )\n  }\n  \n  func toolBoard(_ toolBoard: ToolBoard, didSelectObject index : Int){\n  //Put here you're code ( this method will be call every time the user touch a cell )\n  }\n\n}\n```\n\nEnjoy !! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-ben%2Fswifttoolboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeta-ben%2Fswifttoolboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-ben%2Fswifttoolboard/lists"}