nightonke / vhboommenubutton Goto Github PK
View Code? Open in Web Editor NEWA menu which can ... BOOM! - iOS
License: MIT License
A menu which can ... BOOM! - iOS
License: MIT License
Hello
I am using this component easily but i added OneSignal component to my Xcode project and get this error:
'shared' is unavailable: Use view controller based solutions where appropriate instead.
in BoomMenuButton.swift in line 1504.
in this method:
private func parentView() -> UIView? {
if isBoomInWholeScreen {
if let delegate = UIApplication.shared.delegate {
if let window = delegate.window {
return window!
} else {
return nil
}
} else {
return nil
}
} else {
return superview
}
}
Hi Nightonke. Have a nice day.
Could you show me how to add number badge label for BoomButton. Many thanks ๐
Great work, thank you!
how can I do to boom at startup?
i mean call boom() method on viewDidLoad. Any help?
How to properly implement VHBoomDelegate in Swift?
I've tried override class func onBoomClicked(index: Int32) -> Void
and override class func onBoomClicked(index: Int)
and even with annotation @objc(onBoomClicked:) override class func onBoomClicked(index: Int)
XCode still says "Method doesn't override any method from its superclass"
When dragable is YES , button can't boom.
I've implemented BMB successfully in my app. What I'd like to do is capture the clicked button's frame as the origination for an animated view controller transition.
I've implemented BoomDelegate.
func boomMenuButton(_ bmb: BoomMenuButton, didClickBoomButtonOfBuilder builder: BoomButtonBuilder, at index: Int) {
loggingPrint(bmb.frame)
loggingPrint(builder.imageFrame)
let rect = builder.imageFrame
let currentRect = convert(rect, to: bmb.superview)
loggingPrint(currentRect)
}
}
This delegate method returns the following in the console:
HeaderView.swift boomMenuButton(:didClickBoomButtonOfBuilder:at:)[315]: (317.0, 8.0, 50.0, 50.0)
HeaderView.swift boomMenuButton(:didClickBoomButtonOfBuilder:at:)[316]: (10.0, 10.0, 30.0, 30.0)
HeaderView.swift boomMenuButton(_:didClickBoomButtonOfBuilder:at:)[317]: (10.0, 10.0, 30.0, 30.0)
This return is not giving me anything useful. Any help would be appreciated. Thank you.
var bmb = VHBoomMenuButton.init(frame: CGRect.init(x: 0, y: 0, width: 60, height: 60))
bmb.buttonEnum = .ham
bmb.piecePlaceEnum = .HAM_5
bmb.buttonPlaceEnum = .HAM_5
for _ in 0..<bmb.pieceNumber() {
let builder = VHHamButtonBuilder.init()
builder.normalImageName = "butterfly"
builder.normalText = "Text"
builder.normalSubText = "Sub Text"
bmb.add(builder)
}
I added it but its not showing. When I use "bmb.boom()" screen lock. It already is not showing anything.
Swift 4
I got this error :
"Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ProjectName (5gh-n2-sjS): dlopen(VHBoomMenuButton.framework, 1): no suitable image found..."
Main story board always crashes when i enable vhboommenubutton, what can i do?
I need to pass UIImage for button, because images aren't included in my app bundle, but downloaded from cloud storage. Any workaround?
I got this error on Xcode 9.4.1 swift
how to fix this issue?
Fix problem for Swift version with latest swift support.
Found that if I pod install without the "~> 1.0.2" it installs 2.0.0 and the headers are missing. When looking at the Pods dir.
Hello
I'm new at iOS development so far. For now, i'm using Xcode 10.1 on MacBook Air'13 with apple developer id and iOS 12.1 on iPhone7. App is crashing when it is launched and displays the message "iPhone has denied to launch the app."
Previously i was using macOS High Sierra but now when I've updated to Mojave 10.14.1 and reinstalled Xcode 10.1, it's still showing the same error.
Moreover, I've tried all the other solutions available on Google but nothing is worth it!
Is there any way to cope with this problem?
The boommenu click functionality is not working on any ipad variation on ios 12.0 and onwards.
The logs show no errors and even the menu initialization happens smoothly.
Only the click functionality is not working hence no menu appears.
I saw in the log that there is a fix for the next error:
@IBInspectable public var shadowPathRect: CGRect!
But, it seems that the fix was not upload to the GitHub repository.
Can you look that ?
Thanks
BoomMenuButton.swift:58:31: Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C
Hi,
This is a great demonstration of a boom button. I am using the "isDraggable" property of boom button(BoomMenuButton class), this property works on simulator but not working properly on physical device.
Can you please help me with the issue.
Thanks.
Hello,
is there a way to set a custom BoomMenuButton image instead of the dots?
I installed the library using CocoaPods. Here is my Podfile
.
platform :ios, '9.0'
target 'BMBDemo' do
use_frameworks!
pod 'VHBoomMenuButton/Swift', '2.0.0'
end
It installs the project successfully but when I build it in Xcode 9.1, it fails with the following compile error.
/Users/Admin/Developer/Xcode Projects/Swift/BMBDemo/Pods/VHBoomMenuButton/VHBoomMenuButtonSwift/BoomMenuButton/BoomMenuButton.swift:536:31: Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C
Here is a demo project demonstrating the issue.
I updated my Xcode9 to xcode10, My app is crashing when I tap on button.
App is crashing here
assert(bmb.buttonEnum != .unknown, "[BMB] Unknown button enum!")
assert(bmb.piecePlaceEnum.rawValue < PiecePlaceEnum.count, "[BMB] Unknown piece-place-enum!")
assert(bmb.buttonPlaceEnum.rawValue < ButtonPlaceEnum.count, "[BMB] Unknown button-place-enum!")
assert(bmb.boomEnum.rawValue < BoomEnum.count, "[BMB] Unknown boom-enum!")
assert(builders.count > 0, "[BMB] Empty builders!")
In some cases, we need BoomMenuButton to behave as a simple button, i.e. don't display any animations.
After looking around in the code, I wasn't able to find a way to do that ๐ซ.
I suggest that we adjust these two BoomDelegate methods from:
func boomMenuButtonWillBoom(boomMenuButton bmb: BoomMenuButton)
func boomMenuButtonWillReboom(boomMenuButton bmb: BoomMenuButton)
to
/// If delegate method returns `false` then boom won't even start
func boomMenuButtonWillBoom(boomMenuButton bmb: BoomMenuButton) -> Bool
/// If delegate method returns `false` then reboom won't start
func boomMenuButtonWillReboom(boomMenuButton bmb: BoomMenuButton) -> Bool
Hello,
while using this menu I encountered a strange animation flickering. For example when you open menu and then decide to close, you can see flickering button layers on top of the "pieces" (for example using CircleMenu).
i installed pod 'VHBoomMenuButton/Swift', '2.0.0' in xcode 9 with swift 4 and also #import <BoomMenuButton/BoomMenuButton.h> in Bridging File.But now i got two Error like "Property cannot be marked @IBInspectable " And "Property cannot be marked " in BoomMenuButton.swift FIle.
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.