Skip to content

Commit

Permalink
Merge pull request #39 from fumiyasac/feature/fix_spm_version
Browse files Browse the repository at this point in the history
細かな調整対応
  • Loading branch information
fumiyasac authored Jan 3, 2023
2 parents b2d96c3 + 1703ba2 commit 8ac9f68
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CalculateCalendarLogic.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "CalculateCalendarLogic"
s.swift_versions = '5.0'
s.version = "0.6.0"
s.version = "0.6.1"
s.summary = "This library CalculateCalendarLogic (sample project name is handMadeCalendarAdvance) can judge a holiday in Japan."
s.description = <<-DESC
This library 'CalculateCalendarLogic' can judge a holiday in Japan.
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions handMadeCalendarAdvance/NewCalendarViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class NewCalendarViewController: UIViewController {
extension NewCalendarViewController: UICalendarViewDelegate {

// CalendarViewに適用する装飾を決定する
// 👉 このコードでは祝祭日の部分にオレンジの🗓マークを付与する
// 👉 このコードでは祝祭日の部分にオレンジの🏴マークを付与する
// 参考: https://www.fuwamaki.com/article/353
@available(iOS 16.0, *)
func calendarView(_ calendarView: UICalendarView, decorationFor dateComponents: DateComponents) -> UICalendarView.Decoration? {
Expand All @@ -69,7 +69,7 @@ extension NewCalendarViewController: UICalendarViewDelegate {
return nil
}
if holidayObject.judgeJapaneseHoliday(year: targetYear, month: targetMonth, day: targetDay) {
return .image(UIImage(systemName: "calendar"), color: .orange, size: .medium)
return .image(UIImage(systemName: "flag.2.crossed.fill"), color: .orange, size: .medium)
} else {
return nil
}
Expand Down

0 comments on commit 8ac9f68

Please sign in to comment.