{"id":20684140,"url":"https://github.com/urlaunched-com/mfnavigationbarappearing","last_synced_at":"2025-07-19T12:38:34.198Z","repository":{"id":113914074,"uuid":"155588604","full_name":"urlaunched-com/MFNavigationBarAppearing","owner":"urlaunched-com","description":"Navigation bar interactive appearing ","archived":false,"fork":false,"pushed_at":"2022-06-14T13:55:20.000Z","size":8728,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T12:43:53.812Z","etag":null,"topics":["animation","ios","navigation-controller","swift","urlaunched"],"latest_commit_sha":null,"homepage":"https://urlaunched.com/","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/urlaunched-com.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,"zenodo":null}},"created_at":"2018-10-31T16:22:09.000Z","updated_at":"2025-02-18T14:57:53.000Z","dependencies_parsed_at":"2023-04-13T15:32:18.637Z","dependency_job_id":null,"html_url":"https://github.com/urlaunched-com/MFNavigationBarAppearing","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/urlaunched-com/MFNavigationBarAppearing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urlaunched-com%2FMFNavigationBarAppearing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urlaunched-com%2FMFNavigationBarAppearing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urlaunched-com%2FMFNavigationBarAppearing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urlaunched-com%2FMFNavigationBarAppearing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urlaunched-com","download_url":"https://codeload.github.com/urlaunched-com/MFNavigationBarAppearing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urlaunched-com%2FMFNavigationBarAppearing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265934262,"owners_count":23852092,"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":["animation","ios","navigation-controller","swift","urlaunched"],"created_at":"2024-11-16T22:19:25.490Z","updated_at":"2025-07-19T12:38:34.178Z","avatar_url":"https://github.com/urlaunched-com.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MFNavigationBarAppearing\n[![Author](https://img.shields.io/badge/author-Max_Kuznetsov-orange.svg)](http://urlaunched.com/)\n![Version](https://img.shields.io/badge/version-1.0.7-blue.svg)\n![iOS 9.0+](https://img.shields.io/badge/iOS-9.0%2B-blue.svg)\n![Xcode 10.0](https://img.shields.io/badge/Xcode-10.0-blue.svg)\n![Swift 4.2](https://img.shields.io/badge/Swift-4.2-blue.svg)\n![License](https://img.shields.io/badge/license-MIT-black.svg)\n\n![](https://github.com/Molfar-io/MFNavigationBarAppearing/blob/master/example_300.gif)\n\n\"the app is developed by [You are launched](https://www.urlaunched.com)\"\n\n## Requirements\n* Xcode 10+\n* iOS 9.0+\n* Swift 4.2\n\n## Example\n\nOpen and run the **MFNavigationBarAppearing.xcodeproj** in Xcode to see example\n\n## Installation\n\n### CocoaPods\n\n``` ruby\nsource \"https://github.com/Molfar-io/MFPodSpecs.git\"\n\npod 'MFNavigationBarAppearing'\n```\n\n### Manual\n\nAdd MFNavigationBarAppearing/**Code** folder into your project.\n\n## Usage\n\nFirst of all you need to setup **content insets** of your scroll view \n\n![Content insets](https://github.com/Molfar-io/MFNavigationBarAppearing/blob/master/content_insets.png)\n\n### Important \nYou need to use **`MFNavigationBarAppearingController`** instead of UINavigationContoller for presenting your UIViewController. This UIViewController should implement **`MFNavigationBarAppearer`** protocol\n\n```swift\nlet navigationController = MFNavigationBarAppearingController(rootViewController: UIViewController\u003cMFNavigationBarAppearer\u003e())\npresent(navigationController, animated: true, completion: nil)\n```\n\nNext step is implement **`MFNavigationBarAppearer`** protocol in your **`UIViewController`**:\n\n```swift\nimport MFNavigationBarAppearing\n\n//MARK: - MFNavigationBarAppearer\nextension UIViewController: MFNavigationBarAppearer {\n    \n    var appearingScrollView: UIScrollView? {\n        return scrollView\n    }\n\n    var navigationBarStartAppearingOffset: CGFloat {\n        return collectionViewContainer.frame.height - collectionViewBottomSpacing\n    }\n    \n    var navigationBarEndAppearingOffset: CGFloat? {\n        return collectionViewContainer.frame.height\n    }\n    \n    var appearingTitle: String? {\n        return place.title?.uppercased()\n    }\n    \n    var appearingTitleStartOffsetAfterAppearingNavBar: CGFloat? {\n        return collectionViewContainer.frame.height + titleLabelTopSpacing\n    }\n    \n    var appearingTitleEndOffsetAfterAppearingNavBar: CGFloat? {\n        return collectionViewContainer.frame.height + placeTitleLabel.frame.height\n    }\n}\n```\n\n#### appearingScrollView\nIt's **UIScrollView** which we will use to handle content offset for calculating appearing state of the navigation bar.\n\n#### navigationBarStartAppearingOffset\nThe offset from the top of the screen, when you need to start navigation bar appearing.\n\n#### navigationBarEndAppearingOffset (Optional)\nThe offset when navigation bar appearing should end. If the value is not provided, it will be calculated depending on the height of the navigation bar.\n\n#### appearingTitle (Optional)\nThe title that will be appearing interactively.\n\n#### appearingTitleStartOffsetAfterAppearingNavBar (Optional)\nThe offset (delay in pixels) befor starting title appearing. 0 by default.\n\n#### appearingTitleEndOffsetAfterAppearingNavBar (Optional)\nThe offset when navigation bar appearing should be finish. By default title will be appeared together with navigation bar.\n\n\n## Contacts\nIf you have any questions regarding pod usage or any improvements ideas, just contact me by email mx.kuznetsov.dev@gmail.com\n\nP.S. If you have ideas for this pod, but don't have time to implement it - write us your idea and we will do it.\n\n## Our resources\n[Official website](https://www.urlaunched.com)\u003cbr\u003e\n[Our company timeline](https://www.urlaunched.com/timeline)\u003cbr\u003e\n[You are launched expertise](https://www.urlaunched.com/expertise)\u003cbr\u003e\n[You are launched iOS expertise](https://www.urlaunched.com/expertise/mvp/ios)\u003cbr\u003e\n[You are launched Android expertise](https://www.urlaunched.com/expertise/mvp/android)\u003cbr\u003e\n[You are launched design expertise](https://www.urlaunched.com/expertise/design)\u003cbr\u003e\n[You are launched web expertise](https://www.urlaunched.com/expertise/web)\u003cbr\u003e\n[You are launched Lean Startup expertise](https://www.urlaunched.com/expertise/idea)\u003cbr\u003e\n[You are launched successful startups](https://www.urlaunched.com/launched)\u003cbr\u003e\n[Official blog](https://blog.urlaunched.com/)\n\n## License\n\n\tThe MIT License (MIT)\n\n\tCopyright © 2018 Max Kuznetsov\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\t\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\t\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furlaunched-com%2Fmfnavigationbarappearing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furlaunched-com%2Fmfnavigationbarappearing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furlaunched-com%2Fmfnavigationbarappearing/lists"}