[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6838":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":15,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":15,"starSnapshotCount":15,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},6838,"PageMenu","PageMenu\u002FPageMenu","A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram)","",null,"Swift",5227,875,127,329,0,64.83,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",true,[],"2026-06-12 04:00:30","\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuHeader3.png\" alt=\"PageMenuHeader\">\n\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FPageMenu.svg?style=flat)](http:\u002F\u002Fcocoapods.org\u002Fpods\u002FPageMenu)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fl\u002FPageMenu.svg?style=flat)](http:\u002F\u002Fcocoapods.org\u002Fpods\u002FPageMenu)\n[![Platform](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fp\u002FPageMenu.svg?style=flat)](http:\u002F\u002Fcocoapods.org\u002Fpods\u002FPageMenu)\n[![Carthage compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-4BC51D.svg?style=flat)](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n\n### Unfortunately, life gets in the way sometimes and I won't be able to maintain this library any longer and upgrade this library to where it needs to be.\n\n#### Featured In\n\u003Ctable>\n \u003Ctr>\n \u003Ctd align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fitunes.apple.com\u002Fus\u002Fapp\u002Fwhatsport-connecting-sports\u002Fid1091156941\">\u003Cimg src=\"http:\u002F\u002Fis3.mzstatic.com\u002Fimage\u002Fthumb\u002FPurple122\u002Fv4\u002F64\u002Fd2\u002Fee\u002F64d2ee82-150d-a6fd-ab65-ec8641a979a4\u002Fsource\u002F100x100bb.jpg\" \u002F>\u003C\u002Fa>\n  \u003C\u002Ftd>\n  \u003Ctd align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fitunes.apple.com\u002Fus\u002Fapp\u002Ffunny-or-die\u002Fid299546679?mt=8\">\u003Cimg src=\"http:\u002F\u002Fa2.mzstatic.com\u002Fus\u002Fr30\u002FPurple3\u002Fv4\u002F7b\u002F34\u002F8a\u002F7b348a8b-54d9-e1b2-f50b-a447f6dff4be\u002Ficon100x100.jpeg\" \u002F>\u003C\u002Fa>\n  \u003C\u002Ftd>\n  \u003Ctd align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fitunes.apple.com\u002Fus\u002Fapp\u002Falabama-mvd\u002Fid399424940?mt=8\">\u003Cimg src=\"http:\u002F\u002Fa1.mzstatic.com\u002Fus\u002Fr30\u002FPurple7\u002Fv4\u002Fe8\u002Ff3\u002Fdf\u002Fe8f3df11-5807-9f4c-9725-afb84b461804\u002Ficon100x100.png\" \u002F>\u003C\u002Fa>\n  \u003C\u002Ftd>\n  \u003Ctd align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fitunes.apple.com\u002Fgb\u002Fapp\u002Fhealthful-work-smart-not-hard!\u002Fid970747415?mt=\">\u003Cimg src=\"http:\u002F\u002Fa3.mzstatic.com\u002Feu\u002Fr30\u002FPurple69\u002Fv4\u002F8c\u002F16\u002Fa4\u002F8c16a419-8671-0b0d-e951-8e3f4eeea1f9\u002Ficon100x100.png\" \u002F>\u003C\u002Fa>\n  \u003C\u002Ftd>\n  \u003Ctd align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fitunes.apple.com\u002Fus\u002Fapp\u002Fbboy-event\u002Fid1067848402?mt=8\">\u003Cimg src=\"http:\u002F\u002Fa4.mzstatic.com\u002Fus\u002Fr30\u002FPurple20\u002Fv4\u002F67\u002F26\u002F04\u002F6726041c-5685-7537-cb68-76939df51e30\u002Ficon100x100.jpeg\" \u002F>\u003C\u002Fa>\n  \u003C\u002Ftd>\n  \u003Ctr>\n   \u003Ctd align=\"center\">\u003Cb>WhatSport\u003C\u002Fb>\u003C\u002Ftd>\n   \u003Ctd align=\"center\">\u003Cb>Funny Or Die\u003C\u002Fb>\u003C\u002Ftd>\n   \u003Ctd align=\"center\">\u003Cb>Alabama MVD\u003C\u002Fb>\u003C\u002Ftd>\n   \u003Ctd align=\"center\">\u003Cb>HEALTHFUL\u003C\u002Fb>\u003C\u002Ftd>\n   \u003Ctd align=\"center\">\u003Cb>Bboy Event\u003C\u002Fb>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n   \u003Ctd align=\"center\">SportsQuack LLC\u003C\u002Ftd>\n   \u003Ctd align=\"center\">Funny Or Die, Inc.\u003C\u002Ftd>\n   \u003Ctd align=\"center\">CAPS\u003C\u002Ftd>\n   \u003Ctd align=\"center\">Junaid Younus\u003C\u002Ftd>\n   \u003Ctd align=\"center\">Jazz Pixels ООО\u003C\u002Ftd>\n  \u003C\u002Ftr>\n \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Latest Update\n\n**1.2.8 Release (06\u002F22\u002F2015)**\n* Bug fixes\n* Obj-c more stable\n\n\n## Description\n\nA fully customizable and flexible paging menu controller built from other view controllers placed inside a scroll view allowing the user to switch between any kind of view controller with an easy tap or swipe gesture similar to what Spotify, Windows Phone, and Instagram use\n\n**Similar to Spotify**\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuDemo.gif\" alt=\"PageMenuDemo\">\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuScreen8.png\" alt=\"PageMenuScreen2\">\n\n**Similar to Windows Phone**\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuDemo2.gif\" alt=\"PageMenuDemo2\">\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuScreen7.png\" alt=\"PageMenuScreen2\">\n\n**Similar to Instagram segmented control**\n\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuDemoSegmentedControlGif.gif\" alt=\"PageMenuDemoSegmentedControlGif\">\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fuacaps\u002FResourceRepo\u002Fmaster\u002FPageMenu\u002FPageMenuDemoScreen6.png\" alt=\"PageMenuDemoScreen6\">\n\n## Installation\n\n**CocoaPods**\n\nPageMenu is available through [CocoaPods](http:\u002F\u002Fcocoapods.org). !! Swift only !!\n\nTo install add the following line to your Podfile:\n\n    pod 'PageMenu'\n\n**Carthage**\n\nPageMenu is also available through [Carthage](https:\u002F\u002Fgithub.com\u002Fcarthage\u002Fcarthage).  Append this line to Cartfile and follow [this instruction](https:\u002F\u002Fgithub.com\u002Fcarthage\u002Fcarthage#adding-frameworks-to-an-application).\n\n```\ngithub \"uacaps\u002FPageMenu\"\n```\n\n**Manual Installation**\n\nThe class file required for PageMenu is located in the Classes folder in the root of this repository as listed below:\n\n* CAPSPageMenu.swift\n\n## How to use PageMenu\n\nFirst you will have to create a view controller that is supposed to serve as the base of the page menu. This can be a view controller with its xib file as a separate file as well as having its xib file in storyboard. Following this you will have to go through a few simple steps outlined below in order to get everything up and running.\n\n**1)  Add the files listed in the installation section to your project**\n\n**2)  Add a property for CAPSPageMenu in your base view controller**\n\nSwift\n\n```swift\nvar pageMenu : CAPSPageMenu?\n```\n\nObjective-C\n\n```objectivec\n@property (nonatomic) CAPSPageMenu *pagemenu;\n```\n\n**3)  Add the following code in the viewDidLoad function in your view controller**\n\nSwift\n\n```swift\n\u002F\u002F Array to keep track of controllers in page menu\nvar controllerArray : [UIViewController] = []\n\n\u002F\u002F Create variables for all view controllers you want to put in the \n\u002F\u002F page menu, initialize them, and add each to the controller array. \n\u002F\u002F (Can be any UIViewController subclass)\n\u002F\u002F Make sure the title property of all view controllers is set\n\u002F\u002F Example:\nvar controller : UIViewController = UIViewController(nibName: \"controllerNibName\", bundle: nil)\ncontroller.title = \"SAMPLE TITLE\"\ncontrollerArray.append(controller)\n\n\u002F\u002F Customize page menu to your liking (optional) or use default settings by sending nil for 'options' in the init\n\u002F\u002F Example:\nvar parameters: [CAPSPageMenuOption] = [\n    .MenuItemSeparatorWidth(4.3), \n    .UseMenuLikeSegmentedControl(true), \n    .MenuItemSeparatorPercentageHeight(0.1)\n]\n\n\u002F\u002F Initialize page menu with controller array, frame, and optional parameters\npageMenu = CAPSPageMenu(viewControllers: controllerArray, frame: CGRectMake(0.0, 0.0, self.view.frame.width, self.view.frame.height), pageMenuOptions: parameters)\n\n\u002F\u002F Lastly add page menu as subview of base view controller view\n\u002F\u002F or use pageMenu controller in you view hierachy as desired\nself.view.addSubview(pageMenu!.view)\n```\n\nObjective-C\n\n```objectivec\n\u002F\u002F Array to keep track of controllers in page menu\nNSMutableArray *controllerArray = [NSMutableArray array];\n\n\u002F\u002F Create variables for all view controllers you want to put in the \n\u002F\u002F page menu, initialize them, and add each to the controller array. \n\u002F\u002F (Can be any UIViewController subclass)\n\u002F\u002F Make sure the title property of all view controllers is set\n\u002F\u002F Example:\nUIViewController *controller = [UIViewController alloc] initWithNibname:@\"controllerNibnName\" bundle:nil];\ncontroller.title = @\"SAMPLE TITLE\";\n[controllerArray addObject:controller];\n\n\u002F\u002F Customize page menu to your liking (optional) or use default settings by sending nil for 'options' in the init\n\u002F\u002F Example:\nNSDictionary *parameters = @{CAPSPageMenuOptionMenuItemSeparatorWidth: @(4.3),\n                             CAPSPageMenuOptionUseMenuLikeSegmentedControl: @(YES),\n                             CAPSPageMenuOptionMenuItemSeparatorPercentageHeight: @(0.1)\n                             };\n\n\u002F\u002F Initialize page menu with controller array, frame, and optional parameters\n_pageMenu = [[CAPSPageMenu alloc] initWithViewControllers:controllerArray frame:CGRectMake(0.0, 0.0, self.view.frame.size.width, self.view.frame.size.height) options:parameters];\n\n\u002F\u002F Lastly add page menu as subview of base view controller view\n\u002F\u002F or use pageMenu controller in you view hierachy as desired\n[self.view addSubview:_pageMenu.view];\n```\n\n**4)  Optional - Delegate Methods**\n\nIn order to use the delegate methods first set the delegate of page menu to the parent view controller when setting it up\n\nSwift\n\n```swift\n\u002F\u002F Optional delegate \npageMenu!.delegate = self\n```\n\nObjective-C\n\n```objectivec\n\u002F\u002F Optional delegate \n_pageMenu.delegate = self;\n```\n\n\nAfter that you will be able to set up the following delegate methods inside of your parent view controller\n\nSwift\n\n```swift\nfunc willMoveToPage(controller: UIViewController, index: Int){}\n\nfunc didMoveToPage(controller: UIViewController, index: Int){}\n```\n\nObjective-C\n\n```objectivec\n\u002F\u002F Optional delegate \n- (void)willMoveToPage:(UIViewController *)controller index:(NSInteger)index {}\n\n- (void)didMoveToPage:(UIViewController *)controller index:(NSInteger)index {}\n```\n\n**5)  You should now be ready to use PageMenu!! 🎉**\n\n## Customization\n\nThere are many ways you are able to customize page menu for your needs and there will be more customizations coming in the future to make sure page menu conforms to your app design. These will all be properties in CAPSPageMenu that can be changed from your base view controller. (Property names given with each item below)\n\n**1)  Colors**\n\n  * Background color behind the page menu scroll view to blend in view controller backgrounds \n\n        viewBackgroundColor (UIColor)\n\n  * Scroll menu background color\n\n        scrollMenuBackgroundColor (UIColor)\n\n\n  * Selection indicator color\n\n        selectionIndicatorColor (UIColor)\n\n\n  * Selected menu item label color\n\n        selectedMenuItemLabelColor (UIColor)\n\n\n  * Unselected menu item label color\n\n        unselectedMenuItemLabelColor (UIColor)\n\n\n  * Menu item separator color (Used for segmented control style)\n\n        menuItemSeparatorColor (UIColor)\n\n\n  * Bottom menu hairline color\n\n        bottomMenuHairlineColor (UIColor)\n\n\n\n**2)  Dimensions**\n\n  * Scroll menu height\n\n        menuHeight (CGFloat)\n\n\n  * Scroll menu margin (leading space before first menu item and after last menu item as well as in between items)\n\n        menuMargin (CGFloat)\n\n\n  * Scroll menu item width\n\n        menuItemWidth (CGFloat)\n\n\n  * Selection indicator height\n\n        selectionIndicatorHeight (CGFloat)\n\n\n**3)  Segmented Control**\n\n  * Use PageMenu as segmented control\n\n        useMenuLikeSegmentedControl (Bool)\n\n   \n  * Menu item separator width in pixels\n\n        menuItemSeparatorWidth (CGFloat)\n\n\n  * Menu item separator height in percentage of menu height\n\n        menuItemSeparatorPercentageHeight (CGFloat)\n\n\n  * Menu item separator has rounded edges\n\n        menuItemSeparatorRoundEdges (Bool)\n\n\n**4)  Others**\n  * Menu item title label font\n\n        menuItemFont (UIFont)\n\n\n  * Bottom menu hairline\n\n        addBottomMenuHairline (Bool)\n\n\n  * Menu item witdh based on title text width (see Demo 3)\n\n        menuItemWidthBasedOnTitleTextWidth (Bool)\n\n\n  * Disable\u002FEnable horizontal bounce for controller scroll view\n\n        enableHorizontalBounce (Bool)\n\n\n  * Hide\u002FUnhide top menu bar\n\n        hideTopMenuBar (Bool)\n\n\n  * Center menu items in menu if they don't span entire width (Not currently supported for menu item width based on title)\n\n        centerMenuItems (Bool)\n\n\n  * Scroll animation duration on menu item tap in milliseconds\n\n        scrollAnimationDurationOnMenuItemTap (Int)\n\n## Apps using PageMenu\n\nPlease let me know if your app in the AppStore uses this library so I can add your app to the list of apps featuring PageMenu.\n\n## Future Work\n\n- [x] Screen rotation support\n- [x] Objective-C version\n- [ ] Infinite scroll option \u002F Wrap items\n- [ ] Carthage support\n- [ ] More customization options\n\n## Credits\n\n[Niklas Fahl (fahlout)](http:\u002F\u002Fbit.ly\u002Ffahlout) - iOS Developer ([LinkedIn](http:\u002F\u002Fbit.ly\u002Flinked-in-niklas-fahl))\n\n**Thank you for your contributions:**\n\n[masarusanjp](https:\u002F\u002Fgithub.com\u002Fmasarusanjp)\n* Type-safe options\n\n[John C. Daub (hsoi)](https:\u002F\u002Fgithub.com\u002Fhsoi)\n* iOS 7.1 fixes\n* Content size fixes on viewDidLayoutSubviews()\n\n[Gurpartap Singh (Gurpartap)](https:\u002F\u002Fgithub.com\u002Fgurpartap)\n* CocoaPods fixes\n* ScrollToTop fixes\n\n[Chao Ruan (rcgary)](https:\u002F\u002Fgithub.com\u002Frcgary)\n* Swift 1.2 Support\n\n## Update Log\n\n**1.2.7 Release (06\u002F05\u002F2015)**\n* CocoaPods now has current version\n* Objective-C version in Beta\n* Demos updated\n\n**1.2.6 Release (05\u002F26\u002F2015)**\n* Options are now type-safe - Thanks to [masarusanjp](https:\u002F\u002Fgithub.com\u002Fmasarusanjp)\n\n**1.2.5 Release (04\u002F14\u002F2015)**\n* Support for Swift 1.2 - Thanks to [Chao Ruan (rcgary)](https:\u002F\u002Fgithub.com\u002Frcgary)\n* Will be on cocoa pods soon!\n\n**1.2.4 Release (03\u002F24\u002F2015)**\n* Small improvements thanks to hsoi and kitasuke\n\n**1.2.3 Release (02\u002F09\u002F2015)**\n* iOS 7.1 errors resolved - hsoi\n* Scroll to top now working for each page when tapping status bar - Gurpartap\n* Now fully working with CocoaPods - Gurpartap\n\n**1.2.2 Release (02\u002F09\u002F2015)**\n* Now fully working with CocoaPods thanks to Gurpartap\n\n**1.2.1 Release (02\u002F02\u002F2015)**\n* Added delegate methods to know when page menu will move and did move to a certain page index\n* Fixed bug where pages would disappear when tapping around on menu items\n* Added a few more customization options (enableHorizontalBounce, hideTopMenuBar, menuItemSeparatorColor)\n* Edited Demo 5 to show how to set up view controllers and page menu in order to be able to push from cells, etc.\n* **Changed setup of PageMenu to eliminate some common issues (Please be aware that you will need to make a few changes in your project if you're already using PageMenu)**\n\n**1.2.0 Release (01\u002F26\u002F2015)**\n* Added ability to center menu items if they don't span over entire width of the PageMenu view (currently only supported for fixed menu item width)\n* Added ability to use PageMenu in a similar way as segmented control\n* Added function to move to any page index in PageMenu\n\n**1.1.1 Release (01\u002F16\u002F2015)**\n* Fixed bug that prevented user from tapping anything within a controller\n* Menu now fully scrollable\n\n**1.1.0 Release (01\u002F15\u002F2015)**\n* Major performance improvements\n* Auto-rotation bug fixed\n* Customization option added for scroll animation duration on menu item tap\n\n## License ##\n\nCopyright (c) 2014 The Board of Trustees of The University of Alabama\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and\u002For other materials provided with the distribution.\n 3. Neither the name of the University nor the names of the contributors\n    may be used to endorse or promote products derived from this software\n    without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\nFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL\nTHE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\nINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\nSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\nOF THE POSSIBILITY OF SUCH DAMAGE.\n","PageMenu 是一个基于其他视图控制器构建的分页菜单控制器，这些控制器被放置在一个滚动视图中，允许用户通过点击或滑动手势轻松切换视图。其核心功能包括完全自定义和灵活的分页菜单设计，支持多种视图控制器类型，并且具有与 Spotify、Windows Phone 和 Instagram 类似的用户体验。该项目使用 Swift 语言开发，拥有 BSD 3-Clause 许可证，适合需要实现类似分页导航功能的应用场景，如新闻阅读器、社交应用等。尽管项目已不再维护，但其稳定性和易用性使其仍被多个知名应用程序所采用。",2,"2026-06-11 03:09:10","top_language"]