Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add haptic feedback when export finishes #4

Closed
aheze opened this issue Oct 6, 2020 · 4 comments
Closed

Add haptic feedback when export finishes #4

aheze opened this issue Oct 6, 2020 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@aheze
Copy link
Owner

aheze commented Oct 6, 2020

Currently, this is what happens when export finishes:

It would be nice to have a haptic click when the Export button pops up!

Relavent file, what to edit:

UIView.animate(withDuration: 0.6, animations: {
    self.processingLabel.alpha = 1
    self.imageView.alpha = 1
})

/// Add haptic code here!

self.exportButton.transform = CGAffineTransform(scaleX: 0.8, y: 0.8)
UIView.animate(withDuration: 1, delay: 0.4, usingSpringWithDamping: 0.9, initialSpringVelocity: 0.5, options: .curveLinear, animations: {
    self.exportButton.alpha = 1
    self.exportButton.transform = CGAffineTransform.identity
}, completion: nil)
@aheze aheze added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 6, 2020
@mcblooder
Copy link
Contributor

#9 implemented here

@aheze
Copy link
Owner Author

aheze commented Oct 7, 2020

Thanks @mcblooder!

@aheze aheze closed this as completed Oct 7, 2020
@aheze
Copy link
Owner Author

aheze commented Oct 8, 2020

@mcblooder, want to add yourself to the contributors page in the app?

let aheze = Contributor()
aheze.name = "Zheng"
aheze.additions = 199405
aheze.deletions = 29470
aheze.profileName = "ahezeProfile" /// name of your profile pic, add it to `Contributing.xcassets`
aheze.linkImageName = "Medium"
if let profileURL = URL(string: "https://medium.com/@ahzzheng") {
    aheze.link = profileURL
}
contributors.append(aheze)

@mcblooder
Copy link
Contributor

@aheze nah, thanks, I'm good 👍
Happy to help ya :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants