I'm Paolo and I work for Automattic as iOS Engineer!
pmusolino / pmsuperbutton Goto Github PK
View Code? Open in Web Editor NEWπ₯ PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! π
License: MIT License
π₯ PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! π
License: MIT License
Couldn't find any and this one doesn't seem to return what i was expecting
myButton.touchUpInside{
print(myButton.checkboxButton)
}
You can find more about it here.
Add file manually to project
The following errors appear for each open var:
Overriding declaration requires an 'override' keyword
Overriding non-open var outside of its defining module
xcode: Version 10.1 (10B61)
swift: version 4.2.1
I'm trying to use the method showLoader(), the loader appears and spins but the text does not hide as shown in the example in the first part of https://github.com/pmusolino/PMSuperButton.
The buttons with border inside stackview could not be rendered on storyboard.
Could not find why :(
I have a dark background button and the load animation is invisible on it. Can we change the color of loading animation?
Hi @pmusolino I saw your framework PMSuperButton, its quite interesting. I know this repo had been inactive for a bit long, but why not provide it a new life. Actually I am really interested in contribution into the repo. I have an amazing feature for your PMSuperButton. With the immense improvement in UX Apple brought Haptic Feedback into their phones, so why not use that exceptional feature into your framework. It will be really amazing. This small piece of addition will really help to advance your framework.
With this we can start redesigning this framework. We can add various new features which this framework is lagging. So if you are interested in adding Haptic Feedback do tell me, I will create a PR and Push the file.
Do give a response, this will help me to know the status, so that I can work further on this project.
I have the code ready, ts just your approval and I can make an PR.
Thanks for the great library.
Is it possible to change UIActivityIndicatorView style to others? It's default to UIActivityIndicatorViewStyle.gray
.
Hello!
There is an issue with show/hide loader when less than 0.5 seconds have passed with the showLoader() call.
Because you add indicator after 0.5 second in showLoader() method:
UIView.transition(with: self, duration: 0.5, options: .curveEaseOut, animations: {
self.titleLabel?.alpha = 0.0
self.imageAlpha = 0.0
}) { (finished) in
self.addSubview(self.indicator)
self.indicator.startAnimating()
}
And in hideLoader you have this code:
open func hideLoader(){
guard self.subviews.contains(indicator) == true else {
return
}
Hello!
I've placed UIButton in my storyboard and tried to type PMSuperButton in class, but there is no PMSuperButton. If wrote it there, then error:
Unknown class PMSuperButton in Interface Builder file.
But in .swift files I can import PMSuperButton , create and works with them.
Thanks!
Hi,
I'm adding buttons programatically. This is what I have and I can't seem to get the background image, shadow and animation working. All works when I add a button in storyboard view.
let button = PMSuperButton() //UIButton()
let bgrImage = UIImage(named: "someImage")
//button.setImage(bgrImage, for: .normal) //-> this works ok
button.setBackgroundImage(bgrImage, for: UIControl.State.normal)
button.shadowColor = UIColor.gray
button.shadowOffset = CGSize(width: 2, height: 2)
button.shadowRadius = 2
button.shadowOpacity = 2
button.animatedScaleWhenSelected = 1
button.animatedScaleWhenHighlighted = 1
button.animatedScaleDurationWhenSelected = 1
button.animatedScaleDurationWhenHighlighted = 1
Any idea what am I doing wrong?
Improvement: in iOS 10 we have a new API to provide feedback to the user. Haptic feedback is an extension to the visual feedback that every user is used to already. If you have an iPhone 7 or iPhone 7 Plus, you may have noticed a small vibration of the device while scrolling a date picker or when changing the value of a switchβthat's haptic feedback. The new UIFeedbackGenerator class can be used to implement the same behavior in your apps.
Hi,
I have created a UIButton and added the PMSuperButton class, it does show the Super Button inspector properties, in the preview it also renders the changed property. But once build to the device nothing shows up.
Any ideas?
Thanks,
Niels
` let myFirstButton = PMSuperButton.self
myFirstButton.setTitle("βΈ", for: .normal)
myFirstButton.setTitleColor(.blue, for: .normal)
myFirstButton.frame = CGRect(x: 15, y: -50, width: 300, height: 500)
myFirstButton.addTarget(self, action: #selector(pressed), for: .touchUpInside)
`
Here's my code, it's probably pretty nubby. Just trying to find a way to programmtically add the button and edit it with your creation.
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.