Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pawello2222 committed May 25, 2021
1 parent dd1b02f commit 6c63855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Shared/Model/Contact.swift → Shared/Models/Contact.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Contact: Identifiable, Hashable, Codable {

extension Contact {
static func getAll() -> [Contact] {
let key = UserDefaults.Keys.contacts.rawValue
let key = Key.contacts.rawValue
guard let contacts: [Contact] = UserDefaults.appGroup.getArray(forKey: key) else {
let contacts: [Contact] = [.friend1, .friend2]
UserDefaults.appGroup.setArray(contacts, forKey: key)
Expand Down
6 changes: 3 additions & 3 deletions WidgetExamples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
isa = PBXGroup;
children = (
E54C257B2538D02C000FFA46 /* CoreData */,
E55498362551D1F40066870B /* Model */,
E55498362551D1F40066870B /* Models */,
E54213DC2538979B00CCC9C3 /* FileManager+Ext.swift */,
E54213D32538931900CCC9C3 /* UserDefaults+Ext.swift */,
E5638AE9265D859D00E73B05 /* Widget+Kind.swift */,
Expand Down Expand Up @@ -366,12 +366,12 @@
path = IntentHandler;
sourceTree = "<group>";
};
E55498362551D1F40066870B /* Model */ = {
E55498362551D1F40066870B /* Models */ = {
isa = PBXGroup;
children = (
E55498372551D2160066870B /* Contact.swift */,
);
path = Model;
path = Models;
sourceTree = "<group>";
};
E554989C2552BE150066870B /* Supporting Files */ = {
Expand Down

0 comments on commit 6c63855

Please sign in to comment.