Skip to content

Commit b06aa50

Browse files
committed
Add progress bar
closes #4 closes #13
1 parent 4fd2c3e commit b06aa50

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"kind" : "remoteSourceControl",
1515
"location" : "https://github.com/Finnvoor/SwiftTUI.git",
1616
"state" : {
17-
"revision" : "fe7a5592492e8d6145d1f06005fe4cdc0edaf135",
18-
"version" : "1.0.3"
17+
"revision" : "7ab7a7c8f0a30b8c84201903aa8bbbac99a99e9c",
18+
"version" : "1.0.4"
1919
}
2020
}
2121
],

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let package = Package(
1111
],
1212
dependencies: [
1313
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
14-
.package(url: "https://github.com/Finnvoor/SwiftTUI.git", from: "1.0.3")
14+
.package(url: "https://github.com/Finnvoor/SwiftTUI.git", from: "1.0.4")
1515
],
1616
targets: [
1717
.executableTarget(

Sources/fx-upscale/FXUpscale.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ import Upscaling
6767
"Upscaling from \(Int(inputSize.width))x\(Int(inputSize.height)) ",
6868
"to \(Int(outputSize.width))x\(Int(outputSize.height)) "
6969
].joined())
70-
ActivityIndicator.start()
70+
ProgressBar.start(progress: exportSession.progress)
7171
try await exportSession.export()
72-
ActivityIndicator.stop()
72+
ProgressBar.stop()
7373
CommandLine.success("Video successfully upscaled!")
7474
}
7575
}

0 commit comments

Comments
 (0)