diff --git a/DynamicTodayExtensionExample/DynamicTodayExtension/Base.lproj/MainInterface.storyboard b/DynamicTodayExtensionExample/DynamicTodayExtension/Base.lproj/MainInterface.storyboard index 2fa3839c..107c9456 100644 --- a/DynamicTodayExtensionExample/DynamicTodayExtension/Base.lproj/MainInterface.storyboard +++ b/DynamicTodayExtensionExample/DynamicTodayExtension/Base.lproj/MainInterface.storyboard @@ -1,8 +1,9 @@ - + - + + @@ -18,8 +19,7 @@ - - + @@ -31,23 +31,23 @@ - + - + - + - + - + - + @@ -60,7 +60,6 @@ + + + + + + @@ -69,6 +99,8 @@ + + @@ -76,4 +108,13 @@ + + + + + + + + + diff --git a/TodayExtensionExample/TodayExtension/Image.xcassets/Contents.json b/TodayExtensionExample/TodayExtension/Image.xcassets/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/TodayExtensionExample/TodayExtension/Image.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TodayExtensionExample/TodayExtension/Image.xcassets/circle_next.imageset/Contents.json b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_next.imageset/Contents.json new file mode 100644 index 00000000..5167b8f3 --- /dev/null +++ b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_next.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "circle_next.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TodayExtensionExample/TodayExtension/Image.xcassets/circle_next.imageset/circle_next.png b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_next.imageset/circle_next.png new file mode 100644 index 00000000..731181ab Binary files /dev/null and b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_next.imageset/circle_next.png differ diff --git a/TodayExtensionExample/TodayExtension/Image.xcassets/circle_prev.imageset/Contents.json b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_prev.imageset/Contents.json new file mode 100644 index 00000000..9945f15e --- /dev/null +++ b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_prev.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "circle_prev.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TodayExtensionExample/TodayExtension/Image.xcassets/circle_prev.imageset/circle_prev.png b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_prev.imageset/circle_prev.png new file mode 100644 index 00000000..07544bd2 Binary files /dev/null and b/TodayExtensionExample/TodayExtension/Image.xcassets/circle_prev.imageset/circle_prev.png differ diff --git a/TodayExtensionExample/TodayExtension/TodayViewController.m b/TodayExtensionExample/TodayExtension/TodayViewController.m index 2e8dee32..040836ee 100644 --- a/TodayExtensionExample/TodayExtension/TodayViewController.m +++ b/TodayExtensionExample/TodayExtension/TodayViewController.m @@ -13,13 +13,14 @@ @interface TodayViewController () @property (weak , nonatomic) IBOutlet FSCalendar *calendar; +@property (weak , nonatomic) IBOutlet UIButton *prevButton; +@property (weak , nonatomic) IBOutlet UIButton *nextButton; @property (weak , nonatomic) IBOutlet NSLayoutConstraint *calendarHeight; @property (strong, nonatomic) NSCalendar *gregorian; @property (strong, nonatomic) NSCalendar *lunarCalendar; @property (strong, nonatomic) NSArray *lunarChars; - @end @implementation TodayViewController @@ -35,13 +36,37 @@ - (void)viewDidLoad self.lunarChars = @[@"初一",@"初二",@"初三",@"初四",@"初五",@"初六",@"初七",@"初八",@"初九",@"初十",@"十一",@"十二",@"十三",@"十四",@"十五",@"十六",@"十七",@"十八",@"十九",@"二十",@"二一",@"二二",@"二三",@"二四",@"二五",@"二六",@"二七",@"二八",@"二九",@"三十"]; self.gregorian = [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian]; - self.preferredContentSize = CGSizeMake(320, 300); + if ([self.extensionContext respondsToSelector:@selector(setWidgetLargestAvailableDisplayMode:)]) { + self.extensionContext.widgetLargestAvailableDisplayMode = NCWidgetDisplayModeExpanded; + } else { + self.preferredContentSize = CGSizeMake(320, self.calendarHeight.constant); + } } +- (void)widgetActiveDisplayModeDidChange:(NCWidgetDisplayMode)activeDisplayMode withMaximumSize:(CGSize)maxSize +{ + if (activeDisplayMode == NCWidgetDisplayModeCompact) { + [self.calendar setScope:FSCalendarScopeWeek animated:YES]; + self.calendar.appearance.headerMinimumDissolvedAlpha = 0; + self.prevButton.hidden = NO; + self.nextButton.hidden = NO; + } else if (activeDisplayMode == NCWidgetDisplayModeExpanded) { + [self.calendar setScope:FSCalendarScopeMonth animated:YES]; + self.calendar.appearance.headerMinimumDissolvedAlpha = 0.5; + self.prevButton.hidden = YES; + self.nextButton.hidden = YES; + } +} + - (void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult))completionHandler { - [self.calendar reloadData]; + // Perform any setup necessary in order to update the view. + + // If an error is encountered, use NCUpdateResultFailed + // If there's no update required, use NCUpdateResultNoData + // If there's an update, use NCUpdateResultNewData + completionHandler(NCUpdateResultNewData); } @@ -50,6 +75,13 @@ - (UIEdgeInsets)widgetMarginInsetsForProposedMarginInsets:(UIEdgeInsets)defaultM return UIEdgeInsetsZero; } +- (void)calendar:(FSCalendar *)calendar boundingRectWillChange:(CGRect)bounds animated:(BOOL)animated +{ + self.calendarHeight.constant = CGRectGetHeight(bounds); + self.preferredContentSize = CGSizeMake(320, self.calendarHeight.constant); + [self.view layoutIfNeeded]; +} + - (UIColor *)calendar:(FSCalendar *)calendar appearance:(FSCalendarAppearance *)appearance borderDefaultColorForDate:(NSDate *)date { return [self.gregorian isDateInToday:date] ? appearance.todayColor : nil; @@ -73,13 +105,16 @@ - (NSString *)calendar:(FSCalendar *)calendar subtitleForDate:(NSDate *)date - (IBAction)prevClicked:(id)sender { - NSDate *prevPage = [self.gregorian dateByAddingUnit:NSCalendarUnitMonth value:-1 toDate:self.calendar.currentPage options:0]; + NSCalendarUnit unit = (self.calendar.scope==FSCalendarScopeMonth) ? NSCalendarUnitMonth : NSCalendarUnitWeekOfYear; + NSDate *prevPage = [self.gregorian dateByAddingUnit:unit value:-1 toDate:self.calendar.currentPage options:0]; [self.calendar setCurrentPage:prevPage animated:YES]; + } - (IBAction)nextClicked:(id)sender { - NSDate *nextPage = [self.gregorian dateByAddingUnit:NSCalendarUnitMonth value:1 toDate:self.calendar.currentPage options:0]; + NSCalendarUnit unit = (self.calendar.scope==FSCalendarScopeMonth) ? NSCalendarUnitMonth : NSCalendarUnitWeekOfYear; + NSDate *nextPage = [self.gregorian dateByAddingUnit:unit value:1 toDate:self.calendar.currentPage options:0]; [self.calendar setCurrentPage:nextPage animated:YES]; } diff --git a/TodayExtensionExample/TodayExtensionExample.xcodeproj/project.pbxproj b/TodayExtensionExample/TodayExtensionExample.xcodeproj/project.pbxproj index a0b778bc..046f5567 100644 --- a/TodayExtensionExample/TodayExtensionExample.xcodeproj/project.pbxproj +++ b/TodayExtensionExample/TodayExtensionExample.xcodeproj/project.pbxproj @@ -34,6 +34,7 @@ 309175AB1D7EBD6100BBEB79 /* TodayViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 309175AA1D7EBD6100BBEB79 /* TodayViewController.m */; }; 309175AE1D7EBD6100BBEB79 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 309175AC1D7EBD6100BBEB79 /* MainInterface.storyboard */; }; 309175B21D7EBD6100BBEB79 /* TodayExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 309175A41D7EBD6100BBEB79 /* TodayExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 30EDD2961D98C93B009D6CA3 /* Image.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 30EDD2951D98C93B009D6CA3 /* Image.xcassets */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -110,6 +111,7 @@ 309175AA1D7EBD6100BBEB79 /* TodayViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TodayViewController.m; sourceTree = ""; }; 309175AD1D7EBD6100BBEB79 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; 309175AF1D7EBD6100BBEB79 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 30EDD2951D98C93B009D6CA3 /* Image.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Image.xcassets; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -134,11 +136,6 @@ 300036CA1D9252CB00C795DE /* FSCalendar */ = { isa = PBXGroup; children = ( - 300036CB1D9252CB00C795DE /* CALayer+FSExtension.h */, - 300036CC1D9252CB00C795DE /* CALayer+FSExtension.m */, - 300036CD1D9252CB00C795DE /* FSCalendar+Deprecated.m */, - 300036CE1D9252CB00C795DE /* FSCalendar+IBExtension.h */, - 300036CF1D9252CB00C795DE /* FSCalendar+IBExtension.m */, 300036D01D9252CB00C795DE /* FSCalendar.h */, 300036D11D9252CB00C795DE /* FSCalendar.m */, 300036D21D9252CB00C795DE /* FSCalendarAnimator.h */, @@ -162,11 +159,16 @@ 300036E41D9252CB00C795DE /* FSCalendarScopeHandle.m */, 300036E51D9252CB00C795DE /* FSCalendarStickyHeader.h */, 300036E61D9252CB00C795DE /* FSCalendarStickyHeader.m */, - 300036E71D9252CB00C795DE /* Info.plist */, + 300036CD1D9252CB00C795DE /* FSCalendar+Deprecated.m */, + 300036CE1D9252CB00C795DE /* FSCalendar+IBExtension.h */, + 300036CF1D9252CB00C795DE /* FSCalendar+IBExtension.m */, 300036E81D9252CB00C795DE /* NSObject+FSExtension.h */, 300036E91D9252CB00C795DE /* NSObject+FSExtension.m */, 300036EA1D9252CB00C795DE /* UIView+FSExtension.h */, 300036EB1D9252CB00C795DE /* UIView+FSExtension.m */, + 300036CB1D9252CB00C795DE /* CALayer+FSExtension.h */, + 300036CC1D9252CB00C795DE /* CALayer+FSExtension.m */, + 300036E71D9252CB00C795DE /* Info.plist */, ); name = FSCalendar; path = ../../FSCalendar; @@ -229,6 +231,7 @@ 300036CA1D9252CB00C795DE /* FSCalendar */, 309175A91D7EBD6100BBEB79 /* TodayViewController.h */, 309175AA1D7EBD6100BBEB79 /* TodayViewController.m */, + 30EDD2951D98C93B009D6CA3 /* Image.xcassets */, 309175AC1D7EBD6100BBEB79 /* MainInterface.storyboard */, 309175AF1D7EBD6100BBEB79 /* Info.plist */, ); @@ -326,6 +329,7 @@ buildActionMask = 2147483647; files = ( 300036FA1D9252CB00C795DE /* Info.plist in Resources */, + 30EDD2961D98C93B009D6CA3 /* Image.xcassets in Resources */, 309175AE1D7EBD6100BBEB79 /* MainInterface.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Contents.json index b376f48a..577719ec 100644 --- a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,15 +1,33 @@ { "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, { "size" : "29x29", "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x-1.png", + "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x-1.png", + "filename" : "Icon-App-29x29@3x.png", "scale" : "3x" }, { @@ -24,6 +42,18 @@ "filename" : "Icon-App-40x40@3x.png", "scale" : "3x" }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "Icon-App-57x57@1x.png", + "scale" : "1x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "Icon-App-57x57@2x.png", + "scale" : "2x" + }, { "size" : "60x60", "idiom" : "iphone", @@ -36,6 +66,18 @@ "filename" : "Icon-App-60x60@3x.png", "scale" : "3x" }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, { "size" : "29x29", "idiom" : "ipad", @@ -45,7 +87,7 @@ { "size" : "29x29", "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x-2.png", + "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { @@ -57,7 +99,7 @@ { "size" : "40x40", "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x-1.png", + "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { @@ -77,62 +119,10 @@ "idiom" : "ipad", "filename" : "Icon-App-83.5x83.5@2x.png", "scale" : "2x" - }, - { - "size" : "24x24", - "idiom" : "watch", - "scale" : "2x", - "role" : "notificationCenter", - "subtype" : "38mm" - }, - { - "size" : "27.5x27.5", - "idiom" : "watch", - "scale" : "2x", - "role" : "notificationCenter", - "subtype" : "42mm" - }, - { - "size" : "29x29", - "idiom" : "watch", - "filename" : "Icon-App-29x29@2x.png", - "role" : "companionSettings", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "watch", - "filename" : "Icon-App-29x29@3x.png", - "role" : "companionSettings", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "watch", - "scale" : "2x", - "role" : "appLauncher", - "subtype" : "38mm" - }, - { - "size" : "86x86", - "idiom" : "watch", - "scale" : "2x", - "role" : "quickLook", - "subtype" : "38mm" - }, - { - "size" : "98x98", - "idiom" : "watch", - "scale" : "2x", - "role" : "quickLook", - "subtype" : "42mm" } ], "info" : { "version" : 1, "author" : "xcode" - }, - "properties" : { - "pre-rendered" : true } } \ No newline at end of file diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 00000000..da3746c1 Binary files /dev/null and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 00000000..6d048d3a Binary files /dev/null and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 00000000..2d043288 Binary files /dev/null and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png index 17306e3c..b2312ede 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x-1.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x-1.png deleted file mode 100644 index 40398222..00000000 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x-1.png and /dev/null differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x-2.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x-2.png deleted file mode 100644 index 40398222..00000000 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x-2.png and /dev/null differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png index 40398222..68b9155c 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x-1.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x-1.png deleted file mode 100644 index 70ca9c99..00000000 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x-1.png and /dev/null differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png index 70ca9c99..0eeaaa7e 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png index 1b9d4083..6d048d3a 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x-1.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x-1.png deleted file mode 100644 index 5184c879..00000000 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x-1.png and /dev/null differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png index 5184c879..a9042cd4 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png index 03278121..ede761d3 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png new file mode 100644 index 00000000..c14220ee Binary files /dev/null and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png new file mode 100644 index 00000000..8477219a Binary files /dev/null and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png index 03278121..ede761d3 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png index 93c0d677..c06a07c0 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png index 773a0694..71871636 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png index 43029573..1fb418b1 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png index b7bdda52..277a6f20 100644 Binary files a/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and b/TodayExtensionExample/TodayExtensionExample/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/TodayExtensionExample/TodayExtensionExample/Base.lproj/Main.storyboard b/TodayExtensionExample/TodayExtensionExample/Base.lproj/Main.storyboard index a76d15cb..0ccb7130 100644 --- a/TodayExtensionExample/TodayExtensionExample/Base.lproj/Main.storyboard +++ b/TodayExtensionExample/TodayExtensionExample/Base.lproj/Main.storyboard @@ -1,8 +1,9 @@ - + - + + @@ -14,9 +15,9 @@ - + - +