exyte / fan-menu Goto Github PK
View Code? Open in Web Editor NEWMenu with a circular layout based on Macaw
License: MIT License
Menu with a circular layout based on Macaw
License: MIT License
I have an example built using the interface builder which is set to display on top of another view.
When the view background color is #95c11f and the button circle is also set to the same it results in a slight difference in color on overlay. Am I missing a tint that I need to remove/ set to clear?
let circle = Shape( form: Circle(r: 55.0), fill: Color (val: 0x95c11f) )
Uploading my app on iTunes Connect is giving an error with the FanMenu framework used inside, (integrated through Carthage)
ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'com.exyte.Macaw' under the iOS application 'MyApp.app'."
ERROR ITMS-90205: "Invalid Bundle. The bundle at 'MyApp.app/Frameworks/FanMenu.framework' contains disallowed nested bundles."
ERROR ITMS-90206: "Invalid Bundle. The bundle at 'MyApp.app/Frameworks/FanMenu.framework' contains disallowed file 'Frameworks'."
Is it something that you're aware of ?
Hey, is it possible to use this with SwiftUI? And how would I use it?
Thanks
The error appears after dropping a FanMenu / UIView on Interface Builder and calling the IBOutlet associated with it.
I think this may be a Macaw related error.
Never mind: updating to Macaw 0.9.5 fixed this.
(Letting this here to the admin to close)
two item button are working and give id in return and items number more than 2 are not clickable.
It may working in the example project, but not on new project.
Latest Xcode new project with deployment target 10
Latest Master branch code.
See the video in action.
1550933952454388.mp4.zip
print("WARNING: FanMenu doesn't fit into view bounds. It should be at least ((fanMenu.menuRadius + fanMenu.radius) * 2.0) wide and in high")
When an image string is left blank (like in the TaskViewController example), one gets the warning:
CUICatalog: Invalid asset name supplied: ''
Easy fix is to add:
if (!button.image.isEmpty) {...}
around the two places an UIImage is loaded.
Thanks!
Hello sir,
I want to show half circle rather than full circle.
which code should I need to update ??
When creating a menu with a single item
fanViewButton.items = [FanMenuButton(
id: "test",
image: UIImage(named: "Hook"),
color: Color.clear
)]
you get the following error.
Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
Can you give some guidance on how to set it up to use a single menu option?
Showing All Messages
:-1: Multiple commands produce '/Users/Libern/Library/Developer/Xcode/DerivedData/Sparkle-eluqypnvotfmphgsbcljsqmyugvd/Build/Products/Debug-iphoneos/FanMenu/FanMenu.framework/Info.plist':
1) Target 'FanMenu' (project 'Pods') has copy command from '/Users/Libern/LibernWorking/Projects/Someline/sparkle-ios/Pods/FanMenu/Sources/Info.plist' to '/Users/Libern/Library/Developer/Xcode/DerivedData/Sparkle-eluqypnvotfmphgsbcljsqmyugvd/Build/Products/Debug-iphoneos/FanMenu/FanMenu.framework/Info.plist'
2) Target 'FanMenu' (project 'Pods') has process command with output '/Users/Libern/Library/Developer/Xcode/DerivedData/Sparkle-eluqypnvotfmphgsbcljsqmyugvd/Build/Products/Debug-iphoneos/FanMenu/FanMenu.framework/Info.plist'
How to make buttons scrollable?
I have implemented fanmenu like displayed in TaskViewController.swift. It is working good in english language but while change language to arabic fanMenuView is not changing semanticContentAttribute
to rigthtToLeft
I receive the following warning and error when I try and build the example in Xcode 10.1.
Target 'FanMenu' (project 'Pods') has copy command from '/Users/martin/dev/fan-menu/Sources/Info.plist' to '/Users/martin/Library/Developer/Xcode/DerivedData/Example-fykvmcsmliphikcyocogamyeedyl/Build/Products/Debug-iphonesimulator/FanMenu/FanMenu.framework/Info.plist'
Target 'FanMenu' (project 'Pods') has process command with output '/Users/martin/Library/Developer/Xcode/DerivedData/Example-fykvmcsmliphikcyocogamyeedyl/Build/Products/Debug-iphonesimulator/FanMenu/FanMenu.framework/Info.plist'
Hi
first of all thanks for this wonderful component, it would be very nice if we could have better access to the image view of FanMenuButton. for example we could change the image or set the font for the title label. I think that way you can not use struct for FanMenuButton
Showing All Messages
:-1: Multiple commands produce '/Users/Libern/Library/Developer/Xcode/DerivedData/Example-bkhumjvbaunwschkvskgzvdrrwki/Build/Products/Debug-iphoneos/FanMenu/FanMenu.framework/Info.plist':
1) Target 'FanMenu' (project 'Pods') has copy command from '/Users/Libern/LibernWorking/Projects/Someline/ios/fan-menu-master/Sources/Info.plist' to '/Users/Libern/Library/Developer/Xcode/DerivedData/Example-bkhumjvbaunwschkvskgzvdrrwki/Build/Products/Debug-iphoneos/FanMenu/FanMenu.framework/Info.plist'
2) Target 'FanMenu' (project 'Pods') has process command with output '/Users/Libern/Library/Developer/Xcode/DerivedData/Example-bkhumjvbaunwschkvskgzvdrrwki/Build/Products/Debug-iphoneos/FanMenu/FanMenu.framework/Info.plist'
how can i use it in swift 3?
I have a custom fan menu based on CustomViewController.swift
I need to use the menu in a non standard way where a user is presented with a first menu and on press will present a second menu.
I have successfully closed the menu and switched the items but on opening the items are not still showing the first menu unless I use updateNode which completely re-instantiates the menu and places it according to the original position, which is not required at this point. (I moved the whole fanmenu on open)
I tried implementing an updateScene function but this in turn eventually places the menu in it's original position.
The updateScene tried:
func updateScene() { var oContent = self.scene!.node.contents let buttonsNode = Group(contents: items.enumerated().map { (arg) -> Node in let (index, item) = arg return CustomButtonsScene(customMenu: self).createCustomButton(customMenu: self, data: item, index: index) }) oContent[0] = buttonsNode self.scene!.node.contents = oContent }
func updateScene() { var oContent = self.scene!.node.contents let menuButton = CustomMenuButtonScene(radius: radius) oContent[0] = menuButton.node self.scene!.node.contents = oContent }
Is there a way to render different items or change the class I previously set in IB?
I have the following
swift node.place = Transform.move( dx: Double(self.frame.width) / 2, dy: Double(self.frame.height) + 100 )
which takes the fanMenu.button outside the view but is not shown. Is there a method to allow it show - I looked at clip to bounds with no luck.
Hi,
I'm trying to put a fan menu inside my toolbar. Here is the toolbar item I have defined (the fan menu is clipped by the frame size, but if I don't provide a frame size then it does not show up at all in the toolbar. Is there any way to do this?
Thanks
Brian
lazy var barFanMenu: UIBarButtonItem = {
var fanMenu = FanMenu()
fanMenu.button = FanMenuButton(
id: "main",
image: UIImage(named: "chicken")?.withRenderingMode(.alwaysTemplate),
color: Color(val: 0x7C93FE)
)
fanMenu.items = [
FanMenuButton(
id: "exchange_id",
image: "desserts",
color: Color(val: 0x9F85FF)
),
FanMenuButton(
id: "visa_id",
image: "bread",
color: Color(val: 0xF55B58)
)
]
fanMenu.menuRadius = 90.0
fanMenu.duration = 0.2
fanMenu.delay = 0.05
fanMenu.interval = (Double.pi, 2 * Double.pi)
fanMenu.frame = CGRect(x: 0, y: 0, width: 180, height: 90)
fanMenu.clipsToBounds = false
let b: UIBarButtonItem = UIBarButtonItem(customView: fanMenu)
return b
}()
Hello.
The README says min deployment target is iOS 8.0
My project's min deployment target is 9.0, yet I am getting this error using cocoa pods:
[!] CocoaPods could not find compatible versions for pod "FanMenu":
In Podfile:
FanMenu (from `https://github.com/exyte/fan-menu`)
Specs satisfying the `FanMenu (from `https://github.com/exyte/fan-menu`)` dependency were found, but they required a higher minimum deployment target.
Thanks for the awesome framework!
I looked through the FanMenu code and it seems like it is using the image's name to load an local UIImage for the animation.
Is this a hard requirement by Macaw? Is it possible to use an UIImageView as a buttonItem where I handle the loading of the image from url?
Thank you!
SWXMLHash.XMLIndexer Invalid redeclaration of 'Element'
Hi.
There is no delegate for nodes when we pressed one of them.
1- I won't close nodes after I pressed one of them but I want to get id of node that I pressed it.
2- I want to hide mainButton but I can't do that.
3- Is it possible set clear color to main circle of fan-menu?
Thanks.
HI!
I found that when creating a view on the top for menu use, then it will cover the content from the bottom and the bottom view cannot click or slide. Is there an alternative way to make it??
Thank you!!
Thanks for a great library :)
When I downloaded it I couldn't get it running, had to change the development target for the FanMenu Pod to "iOS 9.1" (it defaults at "iOS 8.0") in the Pods>Targets:FanMenu>BuildSettings>iOS Deployment Target.
For reference here is the error I got:
Module file's minimum deployment target is ios9.1 v9.1: /Users/xxxxxxxxxx/Library/Developer/Xcode/DerivedData/FanMenuBase-caahzwnyrbhuevepdjyscebyqvtb/Build/Products/Debug-iphonesimulator/Macaw/Macaw.framework/Modules/Macaw.swiftmodule/x86_64.swiftmodule
After I swapped that and Cleaned my build it works beautifully. π
Great control, thank you for it!
How would one go about allowing for a button image to be updated? Imagine a state: on/off - off having a different image or a just an image with some opacity. Or even a button with a series of states.
If you can point me in the right direction, I will happily code it up and submit a pull request.
Thank you again and cheers!
When my instance of the fan menu is closed (the .button is visable bot not .items) the overall bounds seem to be covering elements and preventing user interaction.
Can you please make one with a lot of switches like different stiles and check boxes and drop down menus and more please it will help me Iβm making a app but idk how to do it please it can be done around in 1 month if you can do and can I get your PayPal to make a donate button for you please it will be in my app
Hi
first of all thanks for this wonderful component, it would be very nice if we could have better access
when click on one of items at fan menu , there isn't any callback method fire
Button seems not working in iOS 12 properly, all of them are no response .
i want to add a label next to every button in menu anyone can help ?
Dear Fan-Menu team,
i am trying out your interesting Pod on CocoaPods - alas it does not seem to compile with Xcode 11.4 Swift 5.2 respectively. Seems some incompatibility with the Macaw library, that was updated for Swift 5.2.
Will there be an update to the FanMenu pod?
Regards,
Mike
Hello,
I felt very happy when i saw the Carthage release but you set the minimum target to 11.3 :(
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.