tamanyan / swiftpagemenu Goto Github PK
View Code? Open in Web Editor NEWCustomizable Page Tab Menu Controller ๐
License: MIT License
Customizable Page Tab Menu Controller ๐
License: MIT License
I got this BUG.. xcode 8.3.3
Unable to set custom color for navigation bar background to WHITE when PageMenu is visible.
When the page menu is set up , we are able set other background colours for Navigation bar. But when White is set, it gets a default grey color. White works on all other screens of the application.
Please see the attached screen shots.
Hi, is there any simple opportunity to have selected item on left or on right side, and not in center?
I am loading the data into the table view from the API and the tab menu is dynamic too. When the API response doesn't have any data, then we are able to remove the tab menu but not able to empty the table view. So how can we empty the table view?
Can we remove/reduce the deployment target to 10+? I don't see any code which requires 12+ deployment target.
It helps for people with a minimum target of less than 12.
i used this function from data source to display :
func viewControllers(forPageMenuController pageMenuController: PageMenuController) -> [UIViewController] {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let controller = storyboard.instantiateViewController(withIdentifier: "HomeViewController")
return [controller ]
}
but nothing shows up .
In default, my tabTitles have 1 item.
When request API success, I am going to insert the data of API to tabTitles
In case fail, I don't insert data to my tabTitles.
When my tabTitles have 1 item, my UI is error.
Please fix it.
hi,
I am new to iOS. i am trying to implement your menuview in my project. i have a table view in my storyboard. pls tell me how to implement my custom tableview in childview controller.
I am getting an error when I try to install the pod. This is not my first pod and I have several others working in the project.
The error is: [!] Unable to find a specification for 'SwiftPageMenu'
Thanks
I start using this framework. It's great.
How can I set up sliding cursor? Now cursor is hidden or shown. I want to do animation for a move of a cursor.
I have UITabBarController using a storyboard and add a PageTabMenuViewController. I populate items and titles in the init?(coder aDecoder: NSCoder).
It runs and works fine but with a warning "UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). "
The issue is that PageTabMenuViewController has no reference to the TabBarController so something like self.tabBarController!.tabBar will crash. It also causes its tab bar icon and label to disappear.
I am using this PageMenuController. And i have on table view on did select method i used notification center to trigger this delegate method.But not able to pass the int value:
@objc func overAllSelect(notification: NSNotification) {
if let val = notification.userInfo?["index"] as? Int {
pageMenuController(_pageMenuController: PageMenuController, didSelectMenuItem index: val, direction: PageMenuNavigationDirection)
}
}
How i can make the direction from right to left to support arabic
pageViewController.scrollToNext(animated: false, completion: nil) is not working.
Hi, I'd like to only change VC by menu selection and disabling the ability to swipe.
Thanks
is it possible to load the PageMenuController with no items after we've loaded it with items before? reloadPages is allowed to reload with a decreasing amount of title/controller items but the lib does not seem to allow me to remove the last menu item and corresponding controller.
is there some logic in the lib preventing the removal of the last item?
is there a minimum requirement for the amount of menu titles/controllers for a PageMenuController after it has been created with items before? if so, is this minimum adjustable?
Hey tamanyan,
Was just wondering if it was possible to create a nested page menu controller similar to Spotify's Music Podcasts Menu in your library.
func viewControllers(forPageMenuController pageMenuController: PageMenuController) -> [UIViewController] {
return self.items.map(ChildViewController.init)
}
In the pageMenuControllerDataSource delegate method we can assign the View Controller. However It only takes a UIViewController and not a PageTabMenuViewController. Any kind of help would be appreciated. Thanks!
Hello! First of all, big thanks for your product. Very good library, but I haven't found the ability to add the top offset for page menu.
How can I layout page menu on viewController's view with other views?
there should be an option to make the size of childviewcontroller according to our need.
My Requirement is appending an array count just after the tab name like this.
Ferthdod (7), Ga (8), Mor'gol (19)
These counts get after calling web services.
I am going to contribute some budget if you could make it to be able to use with my objective-c project.
If I have less than 4 or 5 menu items, they are all aligned left , leaving half of the menu screen blank.
please change in your project file PageMenuController to
required public init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented, use init(coder: options:)")
}
public init?(coder: NSCoder, options: PageMenuOptions? = nil) {
self.options = options ?? DefaultPageMenuOption()
super.init(coder: coder)
}
This makes it possible to do
subclased PageMenuController where can use
required public init?(coder: NSCoder) {
super.init(coder: coder, options: PageMenuUnderlinePagerOption())
}
Xcode 9.3, Swift 4.1
import SwiftPageMenu //<- Error: Module compiled with Swift 4.0.3 cannot be imported in Swift 4.1: /Users/yury/Developer/.../Carthage/Build/iOS/SwiftPageMenu.framework/Modules/SwiftPageMenu.swiftmodule/x86_64.swiftmodule
/Users/yury/Developer/.../ViewController/Common/Tabbars/UnderlinePagerOption.swift:10:8: Module compiled with Swift 4.0.3 cannot be imported in Swift 4.1: /Users/yury/Developer/.../Carthage/Build/iOS/SwiftPageMenu.framework/Modules/SwiftPageMenu.swiftmodule/x86_64.swiftmodule
$ carthage update --platform iOS
...
*** Building scheme "SwiftPageMenu" in SwiftPageMenu.xcworkspace
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/yury/Developer/.../Carthage/Checkouts/SwiftPageMenu/SwiftPageMenu.xcworkspace -scheme SwiftPageMenu -configuration Release -derivedDataPath /Users/yury/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/SwiftPageMenu/1.2.2 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/zf/qpdrm77s3ss7xcpycw681q4m0000gn/T/SwiftPageMenu SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO (launched in /Users/yury/Developer/.../Carthage/Checkouts/SwiftPageMenu)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/zf/qpdrm77s3ss7xcpycw681q4m0000gn/T/carthage-xcodebuild.MGAZA2.log
please launch a podfile for xcode 9 compatiable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.