Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/2.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
msaps committed Mar 19, 2018
2 parents ced2b70 + b13f011 commit 38d7184
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Listenable.podspec
Expand Up @@ -4,7 +4,7 @@ Pod::Spec.new do |s|
s.platform = :ios, "9.0"
s.requires_arc = true

s.version = "2.1.0"
s.version = "2.2.0"
s.summary = "Swift Observable object"
s.description = <<-DESC
Swift object that provides an observable platform for multiple listeners.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Listenable/Info.plist
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.1.0</string>
<string>2.2.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
4 changes: 3 additions & 1 deletion Sources/Listenable/Listenable.swift
Expand Up @@ -26,6 +26,8 @@ public protocol ListenableType: class {
_ update: Listenable<Listener>.ListenerUpdate) -> Void

func isListener(_ object: Listener) -> Bool

var listenerCount: Int { get }
}

/// An object which can have a number of listeners for delegation.
Expand All @@ -42,7 +44,7 @@ open class Listenable<T>: ListenableType {
lazy private var listeners = [ListenerNode<T>]()

/// The number of currently active listeners.
var listenerCount: Int {
public var listenerCount: Int {
get {
return self.listeners.count
}
Expand Down

0 comments on commit 38d7184

Please sign in to comment.