Skip to content

Commit c18b957

Browse files
committed
Fixed typos and some language in documentation
1 parent 7dc5945 commit c18b957

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

DateHelper.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
361361
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
362362
MACOSX_DEPLOYMENT_TARGET = 10.14;
363-
MARKETING_VERSION = 4.5.0;
363+
MARKETING_VERSION = 4.5.1;
364364
MTL_ENABLE_DEBUG_INFO = YES;
365365
"MTL_ENABLE_DEBUG_INFO[arch=*]" = YES;
366366
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-macOS";
@@ -401,7 +401,7 @@
401401
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
402402
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
403403
MACOSX_DEPLOYMENT_TARGET = 10.14;
404-
MARKETING_VERSION = 4.5.0;
404+
MARKETING_VERSION = 4.5.1;
405405
MTL_ENABLE_DEBUG_INFO = NO;
406406
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-macOS";
407407
PRODUCT_NAME = DateHelper;
@@ -547,7 +547,7 @@
547547
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
548548
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
549549
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
550-
MARKETING_VERSION = 4.5.0;
550+
MARKETING_VERSION = 4.5.1;
551551
MTL_ENABLE_DEBUG_INFO = YES;
552552
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-IOS";
553553
PRODUCT_NAME = DateHelper;
@@ -584,7 +584,7 @@
584584
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
585585
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
586586
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
587-
MARKETING_VERSION = 4.5.0;
587+
MARKETING_VERSION = 4.5.1;
588588
MTL_ENABLE_DEBUG_INFO = NO;
589589
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-IOS";
590590
PRODUCT_NAME = DateHelper;
@@ -617,7 +617,7 @@
617617
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
618618
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
619619
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
620-
MARKETING_VERSION = 4.5.0;
620+
MARKETING_VERSION = 4.5.1;
621621
MTL_ENABLE_DEBUG_INFO = YES;
622622
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-tvOS";
623623
PRODUCT_NAME = DateHelper;
@@ -655,7 +655,7 @@
655655
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
656656
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
657657
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
658-
MARKETING_VERSION = 4.5.0;
658+
MARKETING_VERSION = 4.5.1;
659659
MTL_ENABLE_DEBUG_INFO = NO;
660660
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-tvOS";
661661
PRODUCT_NAME = DateHelper;
@@ -691,7 +691,7 @@
691691
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
692692
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
693693
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
694-
MARKETING_VERSION = 4.5.0;
694+
MARKETING_VERSION = 4.5.1;
695695
MTL_ENABLE_DEBUG_INFO = YES;
696696
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-watchOS";
697697
PRODUCT_NAME = DateHelper;
@@ -728,7 +728,7 @@
728728
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
729729
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
730730
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
731-
MARKETING_VERSION = 4.5.0;
731+
MARKETING_VERSION = 4.5.1;
732732
MTL_ENABLE_DEBUG_INFO = NO;
733733
PRODUCT_BUNDLE_IDENTIFIER = "com.allforces.DateHelper-watchOS";
734734
PRODUCT_NAME = DateHelper;

Documentation/Playground.playground/Pages/Comparing Dates.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import DateHelper
33
/*:
44
# Comparing Dates
5-
Provides a way to check a date against another common scenarios like isToday, isNextWeek, is etc.
5+
Provides common checks like isToday or isNextWeek. It can also check against another date like isSameDay or isEarlier.
66
*/
77
let nowDate = Date()
88
let nextHourDate = Date().adjust(.hour, offset: 1)

Documentation/Playground.playground/Pages/Date From String.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import DateHelper
77

88
`init?(detectFromString string: String)`
99

10-
Uses NSDataDetector to detect a date from natural language in a string. Similar to what Apple mail does on emails. This initializer is not as efficient as `fromString:format:` and should not be used in collections like lists.
10+
Uses NSDataDetector to detect a date from natural language in a string. It works similar to how Apple Mail detects dates. This initializer is not as efficient as **fromString:format:** and should not be used in collections like lists.
1111
*/
1212
Date(detectFromString: "It happened on August 11 of 2009")
1313
Date(detectFromString: "Tomorrow at 5:30 PM")

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Provides two initializers to create a date from string.
1818

1919
- **detectFromString:**
2020
`init?(detectFromString string: String)`
21-
Uses NSDataDetector to detect a date from natural language in a string. Similar to what Apple mail does on emails. This initializer is not as efficient as **fromString:format:** and should not be used in collections like lists.
21+
Uses NSDataDetector to detect a date from natural language in a string. It works similar to how Apple Mail detects dates. This initializer is not as efficient as **fromString:format:** and should not be used in collections like lists.
2222

2323
```Swift
2424
Date(detectFromString: "It happened on August 11 of 2009")
@@ -100,7 +100,7 @@ Date().toString(dateStyle: .full, timeStyle: .full)
100100
```
101101

102102
### Compare Dates
103-
Provides a way to check a date against another common scenarios like isToday, isNextWeek, is etc.
103+
Provides common checks like isToday or isNextWeek. It can also check against another date like isSameDay or isEarlier.
104104

105105
- **Quick Checks**
106106
Checks date against common scenarios
@@ -193,7 +193,7 @@ Date().since(secondDate, in: .week)
193193
Date().since(secondDate, in: .month)
194194
Date().since(secondDate, in: .year)
195195
```
196-
### Miscelanius
196+
### Miscellaneous
197197
**Setting the start day of the week**
198198

199199
```Swift

0 commit comments

Comments
 (0)