Fixes for iOS 17 / xCode 15
This commit is contained in:
parent
94afbb1bcf
commit
c071798b02
@ -244,11 +244,11 @@
|
|||||||
97C146EA1CF9000F007C117D /* Sources */,
|
97C146EA1CF9000F007C117D /* Sources */,
|
||||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||||
97C146EC1CF9000F007C117D /* Resources */,
|
97C146EC1CF9000F007C117D /* Resources */,
|
||||||
|
297F6FD82AD06E0F00FF159E /* Embed Foundation Extensions */,
|
||||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||||
9DAF500633B345EE15CA82E0 /* [CP] Embed Pods Frameworks */,
|
9DAF500633B345EE15CA82E0 /* [CP] Embed Pods Frameworks */,
|
||||||
B727DC94BF66FDBF036EDFA6 /* [CP] Copy Pods Resources */,
|
B727DC94BF66FDBF036EDFA6 /* [CP] Copy Pods Resources */,
|
||||||
297F6FD82AD06E0F00FF159E /* Embed Foundation Extensions */,
|
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
|
@ -9,7 +9,6 @@ struct WonderousTimelineEntry : TimelineEntry {
|
|||||||
var title:String = "";
|
var title:String = "";
|
||||||
var subTitle:String = "";
|
var subTitle:String = "";
|
||||||
var imageData:String = "";
|
var imageData:String = "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Widget, defines the display name and description and also declared the main View
|
// Widget, defines the display name and description and also declared the main View
|
||||||
@ -20,6 +19,7 @@ struct WonderousWidget: Widget {
|
|||||||
StaticConfiguration(kind: kind, provider: WonderousTimelineProvider()) { entry in
|
StaticConfiguration(kind: kind, provider: WonderousTimelineProvider()) { entry in
|
||||||
WonderousWidgetView(entry: entry)
|
WonderousWidgetView(entry: entry)
|
||||||
}
|
}
|
||||||
|
.contentMarginsDisabled()
|
||||||
.configurationDisplayName("Wonderous Widget")
|
.configurationDisplayName("Wonderous Widget")
|
||||||
.description("Track your collected artifacts!")
|
.description("Track your collected artifacts!")
|
||||||
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
|
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
|
||||||
@ -41,9 +41,6 @@ struct WonderousTimelineProvider: TimelineProvider {
|
|||||||
let title = userDefaults?.string(forKey: "lastDiscoveredTitle") ?? ""
|
let title = userDefaults?.string(forKey: "lastDiscoveredTitle") ?? ""
|
||||||
let subTitle = userDefaults?.string(forKey: "lastDiscoveredSubTitle") ?? ""
|
let subTitle = userDefaults?.string(forKey: "lastDiscoveredSubTitle") ?? ""
|
||||||
let imageData = userDefaults?.string(forKey: "lastDiscoveredImageData") ?? ""
|
let imageData = userDefaults?.string(forKey: "lastDiscoveredImageData") ?? ""
|
||||||
// if(context.isPreview){
|
|
||||||
// entry = WonderousEntry(date: Date(), discoveredCount: discoveredCount)
|
|
||||||
// }
|
|
||||||
entry = WonderousTimelineEntry(
|
entry = WonderousTimelineEntry(
|
||||||
date: Date(),
|
date: Date(),
|
||||||
discoveredCount:discoveredCount,
|
discoveredCount:discoveredCount,
|
||||||
|
@ -96,7 +96,6 @@ class CollectiblesLogic with ThrottledSaveLoadMixin {
|
|||||||
scheduleSave();
|
scheduleSave();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Optimize to send both network requests simultaneously
|
|
||||||
Future<void> _updateHomeWidgetTextData({String title = '', String id = '', String imageUrl = ''}) async {
|
Future<void> _updateHomeWidgetTextData({String title = '', String id = '', String imageUrl = ''}) async {
|
||||||
// Save title
|
// Save title
|
||||||
HomeWidget.saveWidgetData<String>('lastDiscoveredTitle', title);
|
HomeWidget.saveWidgetData<String>('lastDiscoveredTitle', title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user