Closed NEULiee closed 2 years ago
Create an Add Action
Connect the Target-Action Pair
Add a New Reminder to the Model
Delete a Reminder
swipe-to-delete
UISwipeActionsConfiguration(style:, title:) style의 background 속성을 설정하여 custom할 수 있습니다.
UICollectionViewLayoutListConfiguration
Create a List Style Enumeration
Filter Reminders by List Style
Display a Segmented Control
Add Action to Segmented Control
Q. Which UISegmentedControl property identifies the index of the segment that the user most recently selected? A. selectedSegmentIndex
Q. Which method loops over a collection and returns an array that contains only those elements that satisfy a condition? A. filter(_:)
Q. What is the value of priority in this code snippet?
enum TaskPriority: Int {
case low
case medium
case high
case urgent
}
let priority = TaskPriority(rawValue: 3) ?? .low
A. TaskPriority.urgent
Adding and Deleting Reminders