Overview
Comment: | iOS: Make more use of native Swift types |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5d68f3d40a8d51848be36846102c8eb4 |
User & Date: | js on 2019-06-19 23:15:26 |
Other Links: | manifest | tags |
Context
2019-12-28
| ||
22:46 | Adjust to ObjFW changes check-in: 31d77b5098 user: js tags: trunk | |
2019-06-19
| ||
23:15 | iOS: Make more use of native Swift types check-in: 5d68f3d40a user: js tags: trunk | |
23:11 | Adjust to ObjFW changes check-in: 1b57a79561 user: js tags: trunk | |
Changes
Modified iOS/AddSiteController.swift from [209b94f8a1] to [7294aad127].
︙ | |||
58 59 60 61 62 63 64 | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | - - + + - + - - - - - + - - - - - - - - - - - + + | preferredStyle: .alert) alert.addAction( UIAlertAction(title: "OK", style: .default, handler: nil)) controller.present(alert, animated: true, completion: nil) } @IBAction func done(_ sender: Any) { |
︙ |
Modified iOS/MainViewController.swift from [9c2bb5d1c2] to [2595a319b1].
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - + | */ import UIKit import ObjFW class MainViewController: UIViewController, UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource { |
︙ | |||
47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + - + | return sites.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "site") ?? UITableViewCell(style: .default, reuseIdentifier: "site") |
︙ |
Modified iOS/ShowDetailsController.swift from [028af44e3c] to [3b6682d3d0].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - - + + - + - + - + | @IBOutlet var nameField: UITextField? @IBOutlet var lengthField: UITextField? @IBOutlet var legacySwitch: UISwitch? @IBOutlet var keyFileField: UITextField? @IBOutlet var passphraseField: UITextField? public var mainViewController: MainViewController? |
︙ | |||
130 131 132 133 134 135 136 | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | - - + + + - + | } } } private func generateWithCallback(_ block: (_: NSMutableString) -> ()) { let generator: PasswordGenerator = isLegacy ? LegacyPasswordGenerator() : NewPasswordGenerator() |
︙ |
Modified iOS/SiteStorage.swift from [0a36bee6de] to [0072dc8d4f].
︙ | |||
20 21 22 23 24 25 26 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | - - - - - - + + + - - + + - + + - + + + + - + - + - + - - - + + + - - - - - - + - - + - + - + - + - - - - - + + - + - - + + - - + - - - + + - + - - + + - - - - + + - - + - - - - - + + - + - - + + + + - - + + | * POSSIBILITY OF SUCH DAMAGE. */ import ObjFW import ObjFWBridge class SiteStorage: OFObject { |