{"id":13823487,"url":"https://github.com/p-larson/TCA-Bible","last_synced_at":"2025-07-08T18:30:33.384Z","repository":{"id":183547487,"uuid":"667958281","full_name":"p-larson/TCA-Bible","owner":"p-larson","description":"Bible reader built with SwiftUI \u0026 TCA","archived":false,"fork":false,"pushed_at":"2023-09-15T19:48:45.000Z","size":6567,"stargazers_count":7,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T09:12:14.815Z","etag":null,"topics":["swift","swiftui","the-composable-architecture"],"latest_commit_sha":null,"homepage":"","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/p-larson.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}},"created_at":"2023-07-18T17:26:21.000Z","updated_at":"2024-07-25T21:14:03.000Z","dependencies_parsed_at":"2024-01-18T05:14:39.322Z","dependency_job_id":"9db4975d-f248-46bb-aa74-4e6ac9d001b9","html_url":"https://github.com/p-larson/TCA-Bible","commit_stats":null,"previous_names":["p-larson/tca-bible"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-larson%2FTCA-Bible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-larson%2FTCA-Bible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-larson%2FTCA-Bible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-larson%2FTCA-Bible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p-larson","download_url":"https://codeload.github.com/p-larson/TCA-Bible/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225453337,"owners_count":17476705,"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":["swift","swiftui","the-composable-architecture"],"created_at":"2024-08-04T09:00:35.362Z","updated_at":"2024-11-20T01:30:37.265Z","avatar_url":"https://github.com/p-larson.png","language":"Swift","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# TCA-Bible\n[![Swift](https://github.com/p-larson/TCA-Bible/actions/workflows/swift.yml/badge.svg?branch=main)](https://github.com/p-larson/TCA-Bible/actions/workflows/swift.yml)\n\nThis project is solely a demonstration of a multiplatform `iOS`/`macOS` application built with `SwiftUI` and `TCA`. Both apps are distinct, but they do share a majority of their code-base. Using `TCA` to hyper-modularize this project has allowed the two targets to share the most feasible amount of depenedencies, which has been a huge advantage.\n\n- [iOS](#iOS)\n- [macOS](#Mac)\n- [Source](#Source)\n- [Tests](#Tests)\n- [More](#More)\n\n## iOS\n\n\u003cimg src=\"https://github.com/p-larson/TCA-Bible/blob/main/Bible/Simulator%20Screenshot%20-%20iPhone%2014%20-%202023-08-08%20at%2012.12.20.png\" width=225\u003e \u003cimg src=\"https://github.com/p-larson/TCA-Bible/blob/main/Bible/Simulator%20Screenshot%20-%20iPhone%2014%20-%202023-08-08%20at%2012.12.27.png\" width=225\u003e \u003cimg src=\"https://github.com/p-larson/TCA-Bible/blob/main/Bible/Simulator%20Screenshot%20-%20iPhone%2014%20-%202023-08-08%20at%2012.12.32.png\" width=225\u003e \n\n## Mac\n\n\u003cimg src=\"https://github.com/p-larson/TCA-Bible/blob/main/Bible/Screenshot%202023-08-08%20at%2012.11.55%20PM.png\" width=600\u003e\n\n## Source\n\n- [BibleClient](BibleCore/Sources/BibleClient/)\n- [BibleClient/Client.swift](BibleCore/Sources/BibleClient/Client.swift)\n- [BibleClient/Live.swift](BibleCore/Sources/BibleClient/Live.swift)\n- [BibleClient/Test.swift](BibleCore/Sources/BibleClient/Test.swift)\n- [BibleCore/](BibleCore/Sources/BibleCore)\n- [BibleCore/Book.swift](BibleCore/Sources/BibleCore/Book.swift)\n- [BibleCore/Chapter.swift](https://github.com/p-larson/TCA-Bible/blob/main/BibleCore/Sources/BibleCore/Chapter.swift)\n- [BibleCore/Genre.swift](https://github.com/p-larson/TCA-Bible/blob/main/BibleCore/Sources/BibleCore/Genre.swift)\n- [BibleCore/Translation.swift](https://github.com/p-larson/TCA-Bible/blob/main/BibleCore/Sources/BibleCore/Translation.swift)\n- [BibleCore/Verse.swift](https://github.com/p-larson/TCA-Bible/blob/main/BibleCore/Sources/BibleCore/Verse.swift)\n- [DirectoryCore/](BibleCore/Sources/DirectoryCore/)\n- [DirectoryCore/MenuDirectory](BibleCore/Sources/DirectoryCore/MenuDirectory/)\n- [DirectoryCore/MenuDirectory/MenuDirectory.swift](BibleCore/Sources/DirectoryCore/MenuDirectory/MenuDirectory.swift)\n- [DirectoryCore/MenuDirectory/MenuDirectoryView.swift](BibleCore/Sources/DirectoryCore/MenuDirectory/MenuDirectoryView.swift)\n- [DirectoryCore/MenuDirectory/Section/](BibleCore/Sources/DirectoryCore/MenuDirectory/Section/)\n- [DirectoryCore/MenuDirectory/Section/Section.swift](BibleCore/Sources/DirectoryCore/MenuDirectory/Section/Section.swift)\n- [DirectoryCore/MenuDirectory/Section/SectionView.swift](BibleCore/Sources/DirectoryCore/MenuDirectory/Section/SectionView.swift)\n- [DirectoryCore/ToolbarDirectory/ToolDirectory.swift](BibleCore/Sources/DirectoryCore/ToolDirectory/ToolDirectory.swift)\n- [DirectoryCore/ToolbarDirectory/ToolDirectoryView.swift](BibleCore/Sources/DirectoryCore/ToolDirectory/ToolDirectoryView.swift)\n- [ReaderCore/DesktopReader/DesktopReader.swift](BibleCore/Sources/ReaderCore/DesktopReader/DesktopReader.swift)\n- [ReaderCore/DesktopReader/DesktopReaderView.swift](BibleCore/Sources/ReaderCore/DesktopReader/DesktopReaderView.swift)\n- [ReaderCore/Page/Page.swift](BibleCore/Sources/ReaderCore/Page/Page.swift)\n- [ReaderCore/Page/PageView.swift](BibleCore/Sources/ReaderCore/Page/PageView.swift)\n- [ReaderCore/Reader.swift](BibleCore/Sources/ReaderCore/Reader.swift)\n\n## Tests\n\n- [AppStoreSnapshotTests](BibleCore/Tests/AppStoreSnapshotTests/)\n- [BibleClientTests](BibleCore/Tests/BibleClientTests/)\n- [DirectoryCoreTests](BibleCore/Tests/DirectoryCoreTests/)\n- [ReaderCoreTests](BibleCore/Tests/ReaderCoreTests/)\n\n## More\n\n## My favorite lines of code from this project 💖\n*Exhaustive testing with `TCA`*\n\n```swift\n// BibleCore/Tests/ReaderCoreTests/ReaderTests.swift#testNextChapter:82-84\nawait store.send(.menuDirectory(.book(id: Book.genesis.id, action: .select(.genesis, .mock, .mock, nil)))) {\n    $0.isDirectoryOpen = false\n}\n```\n\n## My least favorite lines of code from this project 😪\n\n*Optional SwiftUI.View#tag*\n\n```swift\n// BibleCore/Source/DirectoryCore/ToolbarDirectory/ToolbarDirectoy.swift:23\n// viewStore.$book: Optional\u003cBook\u003e\nPicker(selection: viewStore.$book) { \n  ForEach(books) { book in\n      Text(book.name)\n        // This is beyond the silliest part of SwiftUI.\n        // BindingState\u003cOptional\u003cBook\u003e\u003e requires tag to SwiftUI.View#tag to be Optional\u003cBook\u003e\n        // otherwise, Optional\u003cBook\u003e equate to Book will always fail.\n        .tag(Book?.some(book))\n  }\n}\n...\n```\n\n![Screenshot](https://github.com/p-larson/TCA-Bible/blob/8bd75df0745db54b19872276254748b5f34fbb8b/Bible/Screenshot%202023-07-24%20at%203.00.01%20PM.png)\n![Screenshot 2](https://github.com/p-larson/TCA-Bible/blob/4489929085ec83cf05939f2f938e3518d6d40e72/Bible/Screenshot%202023-07-24%20at%203.04.00%20PM.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-larson%2FTCA-Bible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp-larson%2FTCA-Bible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-larson%2FTCA-Bible/lists"}