Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	QRSharePro/History.swift
  • Loading branch information
Visual-Studio-Coder committed Apr 18, 2024
2 parents f4da8a7 + b0cd904 commit 3ff8e72
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions QRSharePro.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.1;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.aaronhma.QRShare;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down Expand Up @@ -621,7 +621,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.1;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.aaronhma.QRShare;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down
1 change: 1 addition & 0 deletions QRSharePro/History.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct History: View {
return "Deep Link"
}
}

return "Text"
}

Expand Down
21 changes: 14 additions & 7 deletions QRSharePro/HistoryDetailInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,6 @@ struct HistoryDetailInfo: View {
}
.onAppear {
Task {
originalText = qrCode.text
generateQRCode(from: qrCode.text)

if qrCode.text.isValidURL() {
qrCode.text = URL(string: qrCode.text.removeTrackers())!.prettify().absoluteString

Expand All @@ -850,6 +847,9 @@ struct HistoryDetailInfo: View {
print(error.localizedDescription)
}
}

generateQRCode(from: qrCode.text)
originalText = qrCode.text
}
}
.accentColor(accentColorManager.accentColor)
Expand Down Expand Up @@ -891,8 +891,9 @@ struct HistoryDetailInfo: View {
Label("Delete", systemImage: "trash")
}
}
ToolbarItem(placement: .topBarTrailing) {
if !isEditing {

if !isEditing {
ToolbarItem(placement: .topBarTrailing) {
Menu {
Button {
if qrCode.text.count > 3000 {
Expand Down Expand Up @@ -958,9 +959,15 @@ struct HistoryDetailInfo: View {
} label: {
Label("More", systemImage: "ellipsis.circle")
}
} else {
}
}

if isEditing {
ToolbarItem(placement: .topBarTrailing) {
Button {
isEditing.toggle()
withAnimation {
isEditing = false
}
} label: {
Text("Done")
}
Expand Down
2 changes: 1 addition & 1 deletion QRSharePro/Home.swift
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ struct Home: View {
} header: {
Text("Default Tab")
} footer: {
Text("This will be the tab that opens when not using a quick action.")
Text("Choose the tab that appears when launching the app.")
}

Section {
Expand Down

0 comments on commit 3ff8e72

Please sign in to comment.