{"id":18027735,"url":"https://github.com/divadretlaw/swiftui-navigationitem","last_synced_at":"2026-04-30T10:31:47.138Z","repository":{"id":91579061,"uuid":"469124901","full_name":"divadretlaw/SwiftUI-NavigationItem","owner":"divadretlaw","description":"📲 Access NavigationItem in SwiftUI","archived":false,"fork":false,"pushed_at":"2022-07-15T12:59:48.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-10T04:44:51.371Z","etag":null,"topics":["framework","ios","library","swift","swiftui"],"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/divadretlaw.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-12T15:39:22.000Z","updated_at":"2023-07-24T15:47:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"4421b059-dc75-491a-b422-4261c98ecb08","html_url":"https://github.com/divadretlaw/SwiftUI-NavigationItem","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FSwiftUI-NavigationItem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FSwiftUI-NavigationItem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FSwiftUI-NavigationItem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FSwiftUI-NavigationItem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divadretlaw","download_url":"https://codeload.github.com/divadretlaw/SwiftUI-NavigationItem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242687,"owners_count":20907135,"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":["framework","ios","library","swift","swiftui"],"created_at":"2024-10-30T08:12:23.035Z","updated_at":"2026-04-30T10:31:47.095Z","avatar_url":"https://github.com/divadretlaw.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NavigationItem for SwiftUI\n\n## Why\n\nSwiftUI doesn't expose the `UINavigationItem` from the `NavigationView` but sometimes you might want to access it to set the `prompt` or the `backButtonDisplayMode`.\nWith this modifier you can easily customize the `UINavigationItem` of your SwiftUI `NavigationView`s.\n\n## Usage\n\nThe `.navigationItem` modifier has to be applied to the `NavigationItem` (or `NavigationStack`, `NavigationSplitView` when using iOS 16+) because otherwise the Environment will not be applied to the `NavigationLink` destinations. On child views you can apply them anywhere just like `.navigationTitle`\n\n```swift\nNavigationView {\n    // content\n}\n.navigationItem { navigationItem in\n    // Customize the NavigationItem here\n    navigationItem.prompt = \"Enter information\"\n    navigationItem.backButtonDisplayMode = .generic\n}\n```\n\n## Install\n\n### SwiftPM\n\n```\nhttps://github.com/divadretlaw/SwiftUI-NavigationItem.git\n```\n\n## License\n\nSee [LICENSE](LICENSE)\n\nCopyright © 2022 David Walter (www.davidwalter.at)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivadretlaw%2Fswiftui-navigationitem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivadretlaw%2Fswiftui-navigationitem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivadretlaw%2Fswiftui-navigationitem/lists"}