{"id":13992623,"url":"https://github.com/mattt/NFPA704View","last_synced_at":"2025-07-22T16:30:58.050Z","repository":{"id":16545510,"uuid":"19299118","full_name":"mattt/NFPA704View","owner":"mattt","description":"UIView Subclass for NFPA 704 \"Fire Diamonds\"","archived":true,"fork":false,"pushed_at":"2019-07-11T16:31:15.000Z","size":18,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-29T13:39:53.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/mattt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-30T03:00:35.000Z","updated_at":"2023-01-28T17:50:58.000Z","dependencies_parsed_at":"2022-07-30T17:48:08.405Z","dependency_job_id":null,"html_url":"https://github.com/mattt/NFPA704View","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mattt/NFPA704View","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNFPA704View","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNFPA704View/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNFPA704View/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNFPA704View/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/NFPA704View/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNFPA704View/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266530871,"owners_count":23943997,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-08-09T14:02:04.108Z","updated_at":"2025-07-22T16:30:57.717Z","avatar_url":"https://github.com/mattt.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# NFPA704View\n\n**UIView Subclass for NFPA 704 \"Fire Diamonds\"**\n\n\u003e This project is no longer maintained.\n\n---\n\n\u003e \"[NFPA 704: Standard System for the Identification of the Hazards of Materials for Emergency Response](http://en.wikipedia.org/wiki/NFPA_704)\" is a standard maintained by the U.S.-based National Fire Protection Association. It defines the colloquial \"fire diamond\" used by emergency personnel to quickly and easily identify the risks posed by hazardous materials. This helps determine what, if any, special equipment should be used, procedures followed, or precautions taken during the initial stages of an emergency response.\n\n![NFPA704View](https://raw.github.com/mattt/NFPA704View/screenshots/example.png)\n\n## Usage\n\n### Setting Hazards Manually\n\n```objective-c\nNFPA704View *fireDiamondView =\n    [[NFPA704View alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)];\n\nfireDiamondView.flammability = NFPA704ModerateHazard;\nfireDiamondView.health = NFPA704SlightHazard;\nfireDiamondView.reactivity = NFPA704SeriousHazard;\nfireDiamondView.specialNotice = NFPA704ReactsWithWaterSymbol;\n\n[self.view addSubview:fireDiamondView];\n```\n\n### Setting Hazards from Material\n\n```objective-c\n@interface Chemical : NSObject \u003cNFPA704Material\u003e\n@property (nonatomic, copy) NSString *name;\n@property (nonatomic, copy) NSString *formula;\n\n// ...\n\n@end\n\nfireDiamondView.material = [Chemical CH3CH2OH] // Ethyl Alcohol\n// Flammability = 3, Health = 2, Reactivity = 0\n```\n\n### Contact\n\n[Mattt](https://twitter.com/mattt)\n\n## License\n\nNFPA704View is available under the MIT license.\nSee the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FNFPA704View","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2FNFPA704View","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FNFPA704View/lists"}