{"id":3175,"url":"https://github.com/xai3/Nori","last_synced_at":"2025-08-03T13:32:04.406Z","repository":{"id":62449090,"uuid":"74450970","full_name":"xai3/Nori","owner":"xai3","description":"Easier to apply code based style guide to storyboard.","archived":false,"fork":false,"pushed_at":"2019-04-03T14:49:57.000Z","size":56,"stargazers_count":295,"open_issues_count":0,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-05-29T04:54:13.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/xai3.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":"2016-11-22T08:29:58.000Z","updated_at":"2024-03-04T04:07:11.000Z","dependencies_parsed_at":"2022-11-01T23:33:33.657Z","dependency_job_id":null,"html_url":"https://github.com/xai3/Nori","commit_stats":null,"previous_names":["yukiasai/nori"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FNori","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FNori/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FNori/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FNori/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xai3","download_url":"https://codeload.github.com/xai3/Nori/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548567,"owners_count":17935221,"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":[],"created_at":"2024-01-05T20:16:33.565Z","updated_at":"2024-12-07T01:30:37.968Z","avatar_url":"https://github.com/xai3.png","language":"Swift","funding_links":[],"categories":["Tools","Swift"],"sub_categories":["Web View"],"readme":"# Nori\n\n**Nori** designs the view of the storyboard with source code.\n\n![nori](https://cloud.githubusercontent.com/assets/6880730/23615653/79cb71fc-02ca-11e7-8c5f-0b1ba2698190.gif)\n\n## Usage\n\n### Label\n\nDefine the custom class that extends `StyleableLabel` as `@IBDesignable`. And implement the `func intrinsicStyle() -\u003e LabelStyle`.\n\n``` swift\nimport Nori\n\n@IBDesignable class LargeLabel: StyleableLabel {\n    override func intrinsicStyle() -\u003e LabelStyle {\n        return LabelStyle {\n            $0.textColor = Color.black.color\n            $0.font = UIFont.systemFont(ofSize: FontSize.large.point)\n        }\n    }\n}\n```\n\n### Button\n\nIt's same as the Label.\n\n``` swift\n@IBDesignable class StarButton: StyleableButton {\n    override func intrinsicStyle(for state: UIControlState) -\u003e ButtonStyle {\n        return ButtonStyle {\n            $0.backgroundColor = Color.green.color\n            $0.cornerRadius = 10\n            $0.title = LabelStyle {\n                $0.textColor = UIColor.white\n            }\n        }\n    }\n}\n```\n\n## Supported views\n\n* View\n* Button\n* ImageView\n* Label\n* TextField\n* Switch\n\n## License\n\nNori is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxai3%2FNori","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxai3%2FNori","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxai3%2FNori/lists"}