Skip to content

Commit

Permalink
✨ Fix character encoding problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetsonwheels committed Feb 16, 2021
1 parent 8288e3b commit 8a3b2ac
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Iamages/Iamages/IamagesAPI/IamagesAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class IamagesAPI {
request.httpMethod = method
AF.request(request)
.validate()
.responseString(completionHandler: { response in
.responseString(encoding: .utf8, completionHandler: { response in
switch (response.result) {
case .success:
seal.fulfill(response.value!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ struct ImageDetailsEditInformationScreen: View {
Button(action: {
self.saveNewFile()
}) {
HStack {
Text("Save")
Image(systemName: "square.and.arrow.down")
}
Text("Save")
}.disabled(self.isBusy)
}
ToolbarItem(placement: .navigationBarTrailing) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct SettingsScreen: View {
Text("App settings")
})
}
Section(header: Text("About"), footer: Text("Iamages iOS 2.1.0 (1)")) {
Section(header: Text("About"), footer: Text("Iamages iOS 2.1.0 (2)")) {
Link(destination: URL(string: api.IAMAGES_APIROOT + "private/tos")!) {
HStack {
Text("Terms of Service")
Expand Down
11 changes: 2 additions & 9 deletions Iamages/Iamages/Screens/UploadScreen/UploadScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ struct UploadScreen: View {
Button(action: {
self.isPhotosPickerPresented = true
}) {
HStack {
Image(systemName: "rectangle.stack.badge.plus")
Text("Select")
}

Image(systemName: "plus")
}.sheet(isPresented: self.$isPhotosPickerPresented) {
PhotoPickerComponent(configuration: self.pickerConfig,
pickerResultInformation: self.$pickedFileInformation,
Expand All @@ -50,10 +46,7 @@ struct UploadScreen: View {
Button(action: {
self.isUploadedFilesSheetPresented = true
}) {
HStack {
Text("Upload")
Image(systemName: "square.and.arrow.up.on.square")
}
Image(systemName: "arrow.up")

}.sheet(isPresented: self.$isUploadedFilesSheetPresented) {
UploadedFilesSheet(pickedFileInformation: self.$pickedFileInformation)
Expand Down
1 change: 0 additions & 1 deletion Iamages/Iamages/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"Deleting user" = "Deleting user";
"Delete failed" = "Delete failed";

"Select" = "Select";
"Private file toggle will only apply if you are logged in." = "Private file toggle will only apply if you are logged in.";
"Uploaded files" = "Uploaded files";
"Upload failed" = "Upload failed";
Expand Down
1 change: 0 additions & 1 deletion Iamages/Iamages/vi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"Deleting user" = "Đang xóa người dùng";
"Delete failed" = "Xóa không thành công";

"Select" = "Lựa chọn";
"Private file toggle will only apply if you are logged in." = "Chuyển đổi ảnh riêng tư sẽ chỉ áp dụng nếu bạn đã đăng nhập.";
"Uploaded files" = "Ảnh đã tải lên";
"Upload failed" = "Tải ảnh lên thất bại";
Expand Down

0 comments on commit 8a3b2ac

Please sign in to comment.