Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit ad4949c

Browse files
committed
- fixed custom interval item for iPad
- updated readme
1 parent 3bf85e1 commit ad4949c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Classes/HomeViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,16 @@ class HomeViewController: BaseViewController {
256256
}
257257
},
258258
didCancelHandler: nil,
259-
origin: self.tableView.cellForRow(at: IndexPath(row: 4, section: 0))?.contentView ?? self.view,
259+
origin: self.view,
260260
minutesInterval: 60 * 24,
261261
minimumMultipleOfMinutesIntervalForRangeDuration: 1)
262262

263263
picker.dateFormatter = formatter
264+
picker.popoverDisabled = Utils().isIpad()
265+
if #available(iOS 13.0, *) {
266+
picker.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label]
267+
picker.pickerBackgroundColor = .systemBackground
268+
}
264269
picker.show()
265270
}
266271

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A simple To-do list app build for iPhone, iPad and watchOS in Swift 5 (iOS 11+)
1313
- [x] Add/delete/edit/complete tasks
1414
- [x] Set task Date & Time + custom reminders and comments (images too)
1515
- [x] Sort/Filter/Prioritise tasks
16+
- [x] iPad app
1617
- [x] Watch app
1718
- [x] Widget for Today tasks
1819
- [x] Theme support with custom App Icons
@@ -42,7 +43,6 @@ A simple To-do list app build for iPhone, iPad and watchOS in Swift 5 (iOS 11+)
4243

4344
### Features
4445

45-
- [ ] iPad app
4646
- [ ] Tutorial/Onboarding
4747
- [ ] Lockdown with FaceID/TouchID or passcode ([BiometricAuthentication](https://github.com/rursache/BiometricAuthentication))
4848
- [ ] Smart dates (transform "'task name' today at 10:00" into a task with a date/time of today @ 10:00)

0 commit comments

Comments
 (0)