Skip to content

Commit 22ebcfe

Browse files
author
VishwaiOSDev
committed
feat: updated button title and made some UI Changes
1 parent 43362be commit 22ebcfe

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

Loadify/App/Enums/API.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ enum API {
1515

1616
extension API: NetworkRequestable {
1717

18-
var host: String { "api.loadify.app" }
18+
var host: String { "loadify.madrasvalley.com" }
1919

2020
var path: String {
2121
switch self {
@@ -43,7 +43,7 @@ extension API: NetworkRequestable {
4343
}
4444

4545
/// Configuration for `localhost`
46-
var shouldRunLocal: Bool { true }
46+
var shouldRunLocal: Bool { false }
4747

4848
var port: Int? { 3200 }
4949
}

Loadify/Protocol/Protocols.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ protocol Navigatable: Describable {
2929
}
3030

3131
// MARK: - API Service
32+
3233
protocol FetchService {
3334
func fetchVideoDetailsFromApi(for url: String) async throws -> VideoDetails
3435
}

Loadify/View/DownloadView.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,14 @@ struct DownloadView: View {
111111
@ViewBuilder
112112
private var downloadedBadge: some View {
113113
if viewModel.downloadStatus == .downloaded || viewModel.downloadStatus == .failed {
114-
HStack(spacing: 0) {
114+
HStack(spacing: 4) {
115+
Image(systemName: "arrow.down.circle.fill")
115116
Text(viewModel.downloadStatus == .downloaded ? "Downloaded" : "Failed")
116117
.font(.inter(.bold(size: 14)))
117118
.padding(2)
118119
.cornerRadius(4)
119-
Image(systemName: "arrow.down.circle.fill")
120120
}
121-
.padding(.horizontal, 4)
122-
.padding(.vertical, 2)
121+
.padding(.all, 4)
123122
.foregroundColor(.white)
124123
.background(badgeColor)
125124
.cornerRadius(4)
@@ -172,7 +171,7 @@ struct DownloadView: View {
172171
}
173172
} label: {
174173
Text("Download")
175-
.font(.inter(.bold(size: 18)))
174+
.font(.inter(.light(size: 16)))
176175
}
177176
.buttonStyle(CustomButtonStyle(isDisabled: selectedQuality == .none ? true: false))
178177
.disabled(selectedQuality == .none ? true: false)

Loadify/View/URLView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ struct URLView: View {
7474
await didTapContinue()
7575
}
7676
} label: {
77-
Text("Continue")
78-
.font(.inter(.bold(size: 18)))
77+
Text("Convert")
78+
.font(.inter(.light(size: 16)))
7979
}
8080
}
8181

0 commit comments

Comments
 (0)