You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are declaring:
let lightImpactGenerator = UIImpactFeedbackGenerator()
let heavyImpactGenerator = UIImpactFeedbackGenerator()
Where, it seems to me, you need to be declaring:
let lightImpactGenerator = UIImpactFeedbackGenerator.init(style: .light)
let heavyImpactGenerator = UIImpactFeedbackGenerator.init(style: .heavy)
Also, you're going to need to code for the fact that .rigid and .soft styles are only available in ios13+.
The text was updated successfully, but these errors were encountered:
Hey @filipesaz, I took a quick look and it seems that you're right! I haven't worked on FeedbackEffect in a while, but if you're willing to file a pull request I'd gladly code review and merge it in to make the appropriate changes. Does that sound like something you'd be interested din doing?
Hi!
You are declaring:
let lightImpactGenerator = UIImpactFeedbackGenerator()
let heavyImpactGenerator = UIImpactFeedbackGenerator()
Where, it seems to me, you need to be declaring:
let lightImpactGenerator = UIImpactFeedbackGenerator.init(style: .light)
let heavyImpactGenerator = UIImpactFeedbackGenerator.init(style: .heavy)
Also, you're going to need to code for the fact that .rigid and .soft styles are only available in ios13+.
The text was updated successfully, but these errors were encountered: