{"id":21389367,"url":"https://github.com/isaced/ishappypuzzle","last_synced_at":"2025-08-18T08:05:23.110Z","repository":{"id":56915201,"uuid":"71991160","full_name":"isaced/ISHappyPuzzle","owner":"isaced","description":"just want to hapyy puzzle!","archived":false,"fork":false,"pushed_at":"2016-10-31T09:46:32.000Z","size":2209,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T13:03:46.770Z","etag":null,"topics":[],"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/isaced.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-10-26T10:10:26.000Z","updated_at":"2016-10-31T10:14:57.000Z","dependencies_parsed_at":"2022-08-21T03:50:34.854Z","dependency_job_id":null,"html_url":"https://github.com/isaced/ISHappyPuzzle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/isaced/ISHappyPuzzle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FISHappyPuzzle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FISHappyPuzzle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FISHappyPuzzle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FISHappyPuzzle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaced","download_url":"https://codeload.github.com/isaced/ISHappyPuzzle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FISHappyPuzzle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270962391,"owners_count":24675965,"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-08-18T02:00:08.743Z","response_time":89,"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":[],"created_at":"2024-11-22T12:26:07.483Z","updated_at":"2025-08-18T08:05:23.082Z","avatar_url":"https://github.com/isaced.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISHappyPuzzle\njust want to hapyy puzzle!\n\n- Swift3\n- Xcode8\n\n![screenshot](https://raw.github.com/isaced/ISHappyPuzzle/master/screenshot.gif)\n\n#### Layout\n\n很方便的使用 JSON 文件来组织布局模型数据，格式如下：\n\n```\n[        \n\t{\n\t\t\"x\": 0.587,\n\t\t\"y\": 0.490,\n\t\t\"width\": 0.384,\n\t\t\"height\": 0.215\n\t},\n\t...\n]\n```\n\n这是每一块的表示，多个块包在一个数组里即可。\n\n#### Go\n\n使用非常简单，可以从文件或者网络中读取布局模型数据，然后通过 `ISHappyPuzzleView` 装载：\n\n```\n// 初始化\nlet puzzleView = ISHappyPuzzleView()\n\n// 加载布局\npuzzleView.loadLayout(layoutInfo)\n\n// 截图\nlet screenshot = puzzleView.screenShot()\n```\n\n\n\n...\n\n#### Cocoapods\n\n```\npod 'ISHappyPuzzle'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaced%2Fishappypuzzle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaced%2Fishappypuzzle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaced%2Fishappypuzzle/lists"}