case goBackendVersion
case exportZipArchive
case viewLog
- case donateLink
var localizedUIString: String {
switch self {
case .goBackendVersion: return tr("settingsVersionKeyWireGuardGoBackend")
case .exportZipArchive: return tr("settingsExportZipButtonTitle")
case .viewLog: return tr("settingsViewLogButtonTitle")
- case .donateLink: return tr("donateLink")
}
}
}
let settingsFieldsBySection: [[SettingsFields]] = [
- [.iosAppVersion, .goBackendVersion, .donateLink],
+ [.iosAppVersion, .goBackendVersion],
[.exportZipArchive],
[.viewLog]
]
self?.presentLogView()
}
return cell
- } else if field == .donateLink {
- let cell: ButtonCell = tableView.dequeueReusableCell(for: indexPath)
- cell.buttonText = field.localizedUIString
- cell.onTapped = {
- if let url = URL(string: "https://www.wireguard.com/donations/"), UIApplication.shared.canOpenURL(url) {
- UIApplication.shared.open(url, options: [:])
- }
- }
- return cell
}
fatalError()
}