Skip to content

Commit

Permalink
Store id on init to avoid non-main queue UIKit access
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmoose committed Jun 13, 2017
1 parent af45994 commit 26568a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
## [3.3.4](https://github.com/SwiftKickMobile/SwiftMessages/releases/tag/3.3.4)

### Features
* Add `blur` dim mode option.
* #89 Add `blur` dim mode option.

### Bug Fixes
* #98 Fix touch handling in message view's background view.
* #97 Fix main thread checker warning

## [3.3.3](https://github.com/SwiftKickMobile/SwiftMessages/releases/tag/3.3.3)

Expand Down
6 changes: 2 additions & 4 deletions SwiftMessages/Presenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ class Presenter: NSObject, UIGestureRecognizerDelegate {
panRecognizer.addTarget(self, action: #selector(Presenter.pan(_:)))
panRecognizer.delegate = self
maskingView.clipsToBounds = true
id = (view as? Identifiable)?.id
}

var id: String? {
let identifiable = view as? Identifiable
return identifiable?.id
}
var id: String?

var pauseDuration: TimeInterval? {
let duration: TimeInterval?
Expand Down

0 comments on commit 26568a0

Please sign in to comment.