{"id":21188177,"url":"https://github.com/dev1an/theopictures","last_synced_at":"2025-03-14T20:24:21.760Z","repository":{"id":90135183,"uuid":"431408432","full_name":"Dev1an/TheoPictures","owner":"Dev1an","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-24T09:17:22.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T13:09:33.655Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dev1an.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-24T08:44:39.000Z","updated_at":"2021-11-24T09:17:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"8867967d-3d76-4e24-a857-f00ba8a14271","html_url":"https://github.com/Dev1an/TheoPictures","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev1an%2FTheoPictures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev1an%2FTheoPictures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev1an%2FTheoPictures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev1an%2FTheoPictures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dev1an","download_url":"https://codeload.github.com/Dev1an/TheoPictures/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243640713,"owners_count":20323712,"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-11-20T18:42:53.983Z","updated_at":"2025-03-14T20:24:21.735Z","avatar_url":"https://github.com/Dev1an.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Deliverables\n\n### Decisions/shortcuts\n#### Transition using one view or multiple views?\n\nI chose to load the images using the `https://picsum.photos/200/300` URL and had no reference to an id of the random image so I couldn't spin up another webview to show the same image. Hence I chose to re-layout the same view during the transition from the smaller tile to the bigger tile.\n\nA more flexible approach would be to use the `https://picsum.photos/seed/picsum/{width}/{height}` URL and to generate the random seeds in the app. That way you can easily spin up another view or view controller of the same image for other presentation options.\n\nIf I would have had more time and if I would have been allowed to use the other API I would have chosen the more flexible approach.\n\n#### UIStacks vs UICollectionView\n\nI chose to use UIStacks to lay out the images in the grid because I was limited in time and there was no mention in the spec of scrolling or loading more images.\n\nIf I would have had more time I would have put the images inside a CollectionView.\n\n### XCFramework\n\n[Download](https://github.com/Dev1an/TheoPictures/releases/tag/v0.0.1)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev1an%2Ftheopictures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev1an%2Ftheopictures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev1an%2Ftheopictures/lists"}