-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef25cdb
commit 90cf68a
Showing
6 changed files
with
153 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// SortType.swift | ||
// Sticky Links | ||
// | ||
// Created by Igor Chernyshov on 12.10.2021. | ||
// | ||
|
||
/// Supported types of items sorting. | ||
enum SortType: String { | ||
|
||
/// Do not sort items. | ||
case `none` | ||
|
||
/// Sort items by name. | ||
case name | ||
|
||
/// Sort items by date created. | ||
case dateCreated | ||
} |
6 changes: 4 additions & 2 deletions
6
Sticky Links/Model/Sticky_Links.xcdatamodeld/Sticky_Links.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="19206" systemVersion="20G165" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<entity name="Category" representedClassName=".Category" syncable="YES" codeGenerationType="class"> | ||
<attribute name="dateCreated" optional="YES" attributeType="Date" usesScalarValueType="NO"/> | ||
<attribute name="name" attributeType="String"/> | ||
<relationship name="items" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Items" inverseName="parentCategory" inverseEntity="Items"/> | ||
</entity> | ||
<entity name="Items" representedClassName=".Items" syncable="YES" codeGenerationType="class"> | ||
<attribute name="dateCreated" optional="YES" attributeType="Date" usesScalarValueType="NO"/> | ||
<attribute name="link" attributeType="String"/> | ||
<attribute name="title" attributeType="String"/> | ||
<relationship name="parentCategory" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Category" inverseName="items" inverseEntity="Category"/> | ||
</entity> | ||
<elements> | ||
<element name="Items" positionX="-63" positionY="-18" width="128" height="88"/> | ||
<element name="Category" positionX="-316.4681396484375" positionY="-10.89007568359375" width="128" height="73"/> | ||
<element name="Category" positionX="-316.4681396484375" positionY="-10.89007568359375" width="128" height="74"/> | ||
<element name="Items" positionX="-63" positionY="-18" width="128" height="89"/> | ||
</elements> | ||
</model> |
Oops, something went wrong.