{"id":16387231,"url":"https://github.com/alexeichhorn/pullupmenu","last_synced_at":"2025-07-10T01:04:07.327Z","repository":{"id":93773901,"uuid":"210172818","full_name":"alexeichhorn/PullUpMenu","owner":"alexeichhorn","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-22T18:49:23.000Z","size":52,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T20:55:22.044Z","etag":null,"topics":["ios","menu","pullup","swift"],"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/alexeichhorn.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":"2019-09-22T15:46:49.000Z","updated_at":"2024-10-22T18:49:27.000Z","dependencies_parsed_at":"2023-04-13T20:30:32.504Z","dependency_job_id":null,"html_url":"https://github.com/alexeichhorn/PullUpMenu","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/alexeichhorn/PullUpMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeichhorn%2FPullUpMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeichhorn%2FPullUpMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeichhorn%2FPullUpMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeichhorn%2FPullUpMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexeichhorn","download_url":"https://codeload.github.com/alexeichhorn/PullUpMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeichhorn%2FPullUpMenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264506779,"owners_count":23619063,"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":["ios","menu","pullup","swift"],"created_at":"2024-10-11T04:25:49.706Z","updated_at":"2025-07-10T01:04:07.054Z","avatar_url":"https://github.com/alexeichhorn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PullUpMenu\n\nPullUpMenu for iOS implemented in Swift.\n\nTo show PullUpMenu, use class `PullUpMenuController` like this:\n```swift\nlet menuController = PullUpMenuController()\nmenuController.items = [\n  PullUpMenuItem(title: \"Item\", image: UIImage(named: \"item\"))\n]\nmenuController.present(in: self)\n```\nTo show `PullUpMenuController` in popover style on a larger screen, present it like this:\n```swift\nmenuController.present(in: self, sourceView: button, sourceRect: button.bounds)\n```\nEven if you specify a `sourceView` and `sourceRect`, the PullUpMenu only shows in popover mode, when appropriate, that is whenever the horizontal size class is regular. It will switch between modes as the available space changes.\n\u003cbr\u003e\u003cbr\u003e\n\n\nA `PullUpMenuItem` always needs a `title`, but can have optionally a `subtitle`, `image`, `tintColor`, `touchUpInsideHandler` and `isActive` property. E.g.\n```swift\nPullUpMenuItem(title: \"Item\", subtitle: \"Subtitle\", image: UIImage(named: \"item\"), tintColor: .red, isActive: true, touchUpInsideHandler: { in\n  // do stuff when pressed\n})\n```\n\n## Interactive Animation\n\nTo add support for interactive opening of the `PullUpMenuController`, you should add something like this to your base view controller:\n```swift\nvar interactiveController: PullUpInteractiveAnimator?\n\noverride func viewDidLoad() {\n  super.viewDidLoad()\n  \n  interactiveController = PullUpInteractiveAnimator(viewController: self, menuGenerator: {\n      let menuController = PullUpMenuController()\n      // add data to menu here\n      return menuController\n  })\n}\n```\n\n\n## Important\n\nWhen using `PullUpMenuItem.touchUpInsideHandler`, you should never use a strong refrence to the corresponding `PullUpMenuController` or the view controller it is presented on. This could lead to memory leaks. \nRecommended way:\n```swift\nPullUpMenuItem(title: \"Item\", touchUpInsideHandler: { [unowned self, unowned menuController] in\n  self.doStuff()\n  menuController.doStuff()\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeichhorn%2Fpullupmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexeichhorn%2Fpullupmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeichhorn%2Fpullupmenu/lists"}