Skip to content

Commit dbb7ae7

Browse files
committed
Release 0.1.2
1 parent 78780fc commit dbb7ae7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/NetworkPathMonitor/NetworkPath.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,27 +202,27 @@ public extension NetworkPath {
202202
public static let initial = Sequence.index(0, nil)
203203

204204
/// The previous path in the sequence, if it exists
205-
var previousPath: NetworkPath? {
205+
public var previousPath: NetworkPath? {
206206
switch self {
207207
case let .index(_, previousPath): return previousPath
208208
}
209209
}
210210

211211
/// Indicates whether this is the initial path in the sequence
212-
var isInitial: Bool { index == 0 }
212+
public var isInitial: Bool { index == 0 }
213213

214214
/// Indicates whether this is the first update in the sequence
215-
var isFirstUpdate: Bool { index == 1 }
215+
public var isFirstUpdate: Bool { index == 1 }
216216

217217
/// The current index of this sequence update, if it exists
218-
var index: Int {
218+
public var index: Int {
219219
switch self {
220220
case let .index(value, _): return value
221221
}
222222
}
223223

224224
/// The next index in the sequence, which is one greater than the current index
225-
var nextIndex: Int { index + 1 }
225+
public var nextIndex: Int { index + 1 }
226226

227227
public var description: String { debugDescription }
228228

Sources/NetworkPathMonitor/NetworkPathMonitor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Network
1616

1717
public enum NetworkPathMonitorInfo: Sendable {
1818
/// Current NetworkPathMonitor version.
19-
public static let version = "0.1.1"
19+
public static let version = "0.1.2"
2020
}
2121

2222
/// A class that monitors network path changes using `NWPathMonitor`.

0 commit comments

Comments
 (0)