How do I show 2 different color dots for a date using FSCalendar?
问题 Beginner programmer here. I am trying to show two different color dots if there is a negative AND a positive transaction for that date. Here is my code. It only shows one dot. func calendar(_ calendar: FSCalendar, numberOfEventsFor date: Date) -> Int { let incomeTransaction = realm.objects(Transaction.self).filter(positiveTransactionPredicate(date: date)) let expenseTransaction = realm.objects(Transaction.self).filter(negativeTransactionPredicate(date: date)) for _ in incomeTransaction {