File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Sources/NetworkPathMonitor Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import Network
1616
1717public 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`.
You can’t perform that action at this time.
0 commit comments