{"id":13462674,"url":"https://github.com/OfTheWolf/UBottomSheet","last_synced_at":"2025-03-25T05:32:10.199Z","repository":{"id":33634160,"uuid":"144608261","full_name":"OfTheWolf/UBottomSheet","owner":"OfTheWolf","description":"iPhone Maps App bottom sheet - A Protocol Oriented Approach","archived":false,"fork":false,"pushed_at":"2024-04-03T15:38:08.000Z","size":27787,"stargazers_count":690,"open_issues_count":18,"forks_count":67,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-20T13:15:22.336Z","etag":null,"topics":["apple-maps","bottom-sheet","bottomsheet","bottomsheetbehavior","ios","iphone","swift","swift4"],"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/OfTheWolf.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":"2018-08-13T16:52:06.000Z","updated_at":"2025-03-18T08:56:10.000Z","dependencies_parsed_at":"2024-01-16T05:10:02.880Z","dependency_job_id":"f2de3eba-11f8-4892-aaa3-a4d5c9367172","html_url":"https://github.com/OfTheWolf/UBottomSheet","commit_stats":{"total_commits":50,"total_committers":8,"mean_commits":6.25,"dds":"0.45999999999999996","last_synced_commit":"5ca298d1b638b0a2a53bee22a0ad17f8746b4309"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfTheWolf%2FUBottomSheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfTheWolf%2FUBottomSheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfTheWolf%2FUBottomSheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfTheWolf%2FUBottomSheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OfTheWolf","download_url":"https://codeload.github.com/OfTheWolf/UBottomSheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407488,"owners_count":20610226,"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":["apple-maps","bottom-sheet","bottomsheet","bottomsheetbehavior","ios","iphone","swift","swift4"],"created_at":"2024-07-31T13:00:18.672Z","updated_at":"2025-03-25T05:32:09.669Z","avatar_url":"https://github.com/OfTheWolf.png","language":"Swift","funding_links":[],"categories":["BottomSheet"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/OfTheWolf/UBottomSheet/blob/master/Logo.png\" alt=\"Next Level\" style=\"max-width:100%;\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://cocoapods.org/pods/UBottomSheet\"\u003e\u003cimg alt=\"Language\" src=\"https://img.shields.io/badge/language-swift%205-brightgreen\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://cocoapods.org/pods/UBottomSheet\"\u003e\u003cimg alt=\"Version\" src=\"https://img.shields.io/cocoapods/v/UBottomSheet.svg?style=flat\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://cocoapods.org/pods/UBottomSheet\"\u003e\u003cimg alt=\"Platform\" src=\"https://img.shields.io/cocoapods/p/UBottomSheet.svg?style=flat\"/\u003e\u003c/a\u003e\n        \u003ca href=\"https://cocoapods.org/pods/UBottomSheet\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/cocoapods/l/UBottomSheet.svg?style=flat\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n|  | Features |\n|:---------:|:---------------------------------------------------------------|\n| \u0026#128205; | Apple Maps bottom sheet behaviour |\n| \u0026#9875;   | Supports panning with UIScrollView and UIView |\n| \u0026#127762; | Allows adding dimmable background view |\n| \u0026#128241; | Set sheet content as UIViewController or UINavigationController |\n| \u0026#128214; | Navigation inside sheet with UINavigationController |\n| \u0026#127752; | Add one or more sheet stop positions|\n| \u0026#127919; | Change sheet position programmatically |\n| \u0026#127744; | Present as many sheet as you want |\n| \u0026#128640; | Move multiple sheets simultaneously or seperately |\n| \u0026#127993; | Rubber banding |\n| \u0026#128075; | Dismiss at bottom |\n\n## Demos\n\n| Apple Maps \u0026 Childs | Navigation In Sheet | Pull To Dismiss | Multiple Sheet Positions|\n|:---:|:---:|:---:|:---:|\n|![Tag](https://github.com/OfTheWolf/UBottomSheet/blob/master/records/record1.gif)|![Tag](https://github.com/OfTheWolf/UBottomSheet/blob/master/records/record2.gif)|![Tag](https://github.com/OfTheWolf/UBottomSheet/blob/master/records/record3.gif)|![Tag](https://github.com/OfTheWolf/UBottomSheet/blob/master/records/record4.gif)|\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nBottom sheet child view controllers must conform to the Draggable protocol.\n\n```swift\nclass MapsDemoBottomSheetController: UIViewController, Draggable{\n    @IBOutlet weak var tableView: UITableView!\n      \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        if #available(iOS 11.0, *) {\n            tableView.contentInsetAdjustmentBehavior = .never\n        } else {\n            automaticallyAdjustsScrollViewInsets = false\n        }\n        tableView.delegate = self\n        tableView.dataSource = self\n    }\n    \n    override func viewWillAppear(_ animated: Bool) {\n        super.viewWillAppear(animated)\n        \n        //adds pan gesture recognizer to draggableView()\n        sheetCoordinator?.startTracking(item: self) \n    }\n\n//  MARK: Draggable protocol implementations\n\n    var sheetCoordinator: UBottomSheetCoordinator? \n\n    func draggableView() -\u003e UIScrollView? {\n        return tableView\n    }\n}\n\n```\n\nCreate a UBottomSheetCoordinator from the main view controller. Use the UBottomSheetCoordinator to add and configure the sheet.\n\n```swift\n\n// parentViewController: main view controller that presents the bottom sheet\n// call this within viewWillLayoutSubViews to make sure view frame has measured correctly. see example projects. \nlet sheetCoordinator = UBottomSheetCoordinator(parent: parentViewController)\n\nlet vc = UIStoryboard(name: \"Main\", bundle: nil).instantiateViewController(withIdentifier: \"MapsDemoBottomSheetController\") as! MapsDemoBottomSheetController\n\nvc.sheetCoordinator = sheetCoordinator\n\nsheetCoordinator.addSheet(vc, to: parentViewController)\n```\n\n\n## Requirements\nios9.0+, Xcode10+\n\n## Installation\n\nUBottomSheet is available through [CocoaPods](https://cocoapods.org) and [Swift Package Manager](https://developer.apple.com/documentation/swift_packages).\n\n#### CocoaPods\nAdd the following line to your Podfile:\n```ruby\npod 'UBottomSheet'\n```\n\n#### SPM\nAdd this url in XCode \u003e File \u003e Swift Packages \u003e Add Package Dependency:\n```\nhttps://github.com/OfTheWolf/UBottomSheet\n```\n\n## See Also\n\n[TwitterProfile](https://github.com/OfTheWolf/TwitterProfile) Nested scroll view behaviour of Twitter Profile screen.\n\n## Author\n\nuğur, uguboz@gmail.com\n\n## License\n\nUBottomSheet is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOfTheWolf%2FUBottomSheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOfTheWolf%2FUBottomSheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOfTheWolf%2FUBottomSheet/lists"}