{"id":2421,"url":"https://github.com/ytakzk/Hokusai","last_synced_at":"2025-08-02T23:33:28.486Z","repository":{"id":56914609,"uuid":"38966401","full_name":"ytakzk/Hokusai","owner":"ytakzk","description":"A Swift library to provide a bouncy action sheet","archived":false,"fork":false,"pushed_at":"2017-11-13T07:33:02.000Z","size":1023,"stargazers_count":430,"open_issues_count":4,"forks_count":33,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-23T22:56:28.060Z","etag":null,"topics":["carthage","cocoapods","demo","hokusai","ios","swift-library","ui","uiactionsheet","uialertviewcontroller","uikit","user-interface"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ytakzk.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}},"created_at":"2015-07-12T15:18:22.000Z","updated_at":"2024-07-14T03:07:15.000Z","dependencies_parsed_at":"2022-08-20T20:50:38.201Z","dependency_job_id":null,"html_url":"https://github.com/ytakzk/Hokusai","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FHokusai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FHokusai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FHokusai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FHokusai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytakzk","download_url":"https://codeload.github.com/ytakzk/Hokusai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503208,"owners_count":17930538,"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","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":["carthage","cocoapods","demo","hokusai","ios","swift-library","ui","uiactionsheet","uialertviewcontroller","uikit","user-interface"],"created_at":"2024-01-05T20:16:13.355Z","updated_at":"2024-12-06T17:31:04.230Z","avatar_url":"https://github.com/ytakzk.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Content","Swift","UI and SwiftUI","UI [🔝](#readme)"],"sub_categories":["Alert \u0026 Action Sheet","UI","Action Sheet","Other free courses"],"readme":"![Main](https://raw.githubusercontent.com/wiki/ytakzk/Hokusai/images/main.jpg)\n\nHokusai is a Swift library that provides a bouncy action sheet.  \nIt will give the users a fancy experience without taking pains coding the cool animation.  \nHokusai is compatible with Swift3.\n\n[![Version](https://img.shields.io/cocoapods/v/Hokusai.svg?style=flat)](http://cocoapods.org/pods/Hokusai)\n[![Platform](https://img.shields.io/cocoapods/p/Hokusai.svg?style=flat)](http://cocoapods.org/pods/Hokusai)\n[![CI Status](http://img.shields.io/travis/ytakzk/Hokusai.svg?style=flat)](https://travis-ci.org/ytakzk/Hokusai)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n## Installation\n\nDrop in the Classes folder to your Xcode project.  \nYou can also use cocoapods or Carthage.\n\n#### Using [cocoapods](http://cocoapods.org/)\n\nAdd `pod 'Hokusai'` to your `Podfile` and run `pod install`. Also add `use_frameworks!` to the `Podfile`.\n\n```\nuse_frameworks!\npod 'Hokusai'\n```\n\n#### Using [Carthage](https://github.com/Carthage/Carthage)\n\nAdd `github \"ytakzk/Hokusai\"` to your `Cartfile` and run `carthage update`. If unfamiliar with Carthage then checkout their [Getting Started section](https://github.com/Carthage/Carthage#getting-started).\n\n```\ngithub \"ytakzk/Hokusai\"\n```\n\n## Demo\n![Demo](https://raw.githubusercontent.com/wiki/ytakzk/Hokusai/images/demo.gif)\n\n## Hokusai Usage\nImport Hokusai ```import Hokusai``` then use the following codes in some function except for viewDidLoad.  \n\n```\nlet hokusai = Hokusai()\n\n// Add a button with a closure\nhokusai.addButton(\"Button 1\") {\n    println(\"Rikyu\")\n}\n\n// Add a button with a selector\nhokusai.addButton(\"Button 2\", target: self, selector: Selector(\"button2Pressed\"))\n\n// Set a font name. AvenirNext-DemiBold is the default. (Optional)\nhokusai.fontName = \"Verdana-Bold\"\n\n// Select a color scheme. Just below you can see the dafault sets of schemes. (Optional)\nhokusai.colorScheme = HOKColorScheme.Enshu\n\n// Show Hokusai\nhokusai.show()\n\n// Selector for button 2\nfunc button2Pressed() {\n    println(\"Oribe\")\n}\n\n// Change a title for cancel button. Default is Cancel. (Optional)\nhokusai.cancelButtonTitle = \"Done\"\n\n// Add a callback for cancel button (Optional)\nhokusai.cancelButtonAction = {\n    println(\"canceled\")\n}\n\n```\n\n#### Add a title and message\n```\n// Init with title\nlet hokusai = Hokusai(headline: \"Information\")\n\n// Init with title and message\nlet hokusai = Hokusai(headline: \"Information\", message: \"This can be a long multi-lined message.\")\n\n// ...or add title and message later, but before you call `show()`\nhokusai.headline = \"Infomration\"\nhokusai.message  = \"This can be a long multi-lined message.\"\n```\n\n#### Add a button with a closure\n```\nhokusai.addButton(\"Button Title\") {\n    // Do anything you want\n}\n```\n\n#### Add a button with a selector\n```\nhokusai.addButton(\"Button Title\", target: self, selector: Selector(\"buttonPressed\"))\n\nfunc buttonPressed() {\n    // Do anything you want\n}\n```\n\n## Color schemes\n![Demo](https://raw.githubusercontent.com/wiki/ytakzk/Hokusai/images/colors.jpg)\n\n\n```\npublic enum HOKColorScheme {\n    case  Hokusai,\n          Asagi,\n          Matcha,\n          Tsubaki,\n          Inari,\n          Karasu,\n          Enshu\n}\n```\n\nOr you can use your favorite color combination.\n```\nhokusai.colors = HOKColors(\n    backGroundColor: UIColor.blackColor(),\n    buttonColor: UIColor.purpleColor(),\n    cancelButtonColor: UIColor.grayColor(),\n    fontColor: UIColor.whiteColor()\n)\n```\n\n## Author\nytakzk  \n [https://ytakzk.me](https://ytakzk.me)\n \n## Donation\nYour support is welcome through Bitcoin 3Ps8tBgz4qn6zVUr5D1wcYrrzYjMgEugqv\n \n## License\nHokusai is released under the MIT license.  \nSee LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakzk%2FHokusai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytakzk%2FHokusai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakzk%2FHokusai/lists"}