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

Update Hapticable.swift #7

Merged
merged 1 commit into from Jul 29, 2018
Merged

Update Hapticable.swift #7

merged 1 commit into from Jul 29, 2018

Conversation

Kirow
Copy link
Contributor

@Kirow Kirow commented Jul 16, 2018

'cannot assign to property' fix

Checklist

Motivation and Context

this change will solve cannot assign to property: 'self' is immutable error for cases when trying to assign property inside subclass c-tor

Sample code:

class MyButtonSubclass: UIButton {
    override init(frame: CGRect) {
        super.init(frame: frame)
        isHaptic = true
        hapticType = .impact(.heavy)
    }
}

'cannot assign to property' fix
@efremidze efremidze merged commit d3b435e into efremidze:master Jul 29, 2018
@efremidze
Copy link
Owner

Thanks!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants