Skip to content

Commit 526ac64

Browse files
Steve TreaseSteve Trease
authored andcommitted
Mine changes
1 parent 676db08 commit 526ac64

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

IP Address/ViewController.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
1919

2020
var interfaces = Interface.allInterfaces()
2121

22+
2223
override func viewDidLoad() {
2324
super.viewDidLoad()
2425

@@ -31,8 +32,7 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
3132
// Dispose of any resources that can be recreated.
3233
}
3334

34-
35-
35+
3636
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
3737
return interfaces.count
3838
}
@@ -72,6 +72,8 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
7272

7373

7474
func refreshAndSortAndFilterData () {
75+
UIApplication.shared.isNetworkActivityIndicatorVisible = true
76+
7577
interfaces = Interface.allInterfaces()
7678

7779
var IPv4Interfaces = interfaces.filter { $0.family == .ipv4 }
@@ -98,5 +100,6 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
98100
}
99101

100102
print (interfaces.count)
103+
UIApplication.shared.isNetworkActivityIndicatorVisible = false
101104
}
102105
}

0 commit comments

Comments
 (0)