Skip to content

Commit

Permalink
NSDate extension is now public so it can be accessible from the Frame…
Browse files Browse the repository at this point in the history
…work. Fixed Screenshot URL for CocoaPods.
  • Loading branch information
melvitax committed Jul 15, 2015
1 parent 15daf87 commit 0e055ec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 56 deletions.
2 changes: 1 addition & 1 deletion AFDateHelper.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "AFDateHelper"
s.version = "2.0.1"
s.version = "2.0.2"
s.summary = "Extension for NSDate in Swift."
s.description = <<-DESC
Extension for NSDate in Swift for creating, modifying or comparing dates.
Expand Down
10 changes: 0 additions & 10 deletions AFDateHelper.xcworkspace/contents.xcworkspacedata

This file was deleted.

41 changes: 0 additions & 41 deletions AFDateHelper.xcworkspace/xcshareddata/AFDateHelper.xccheckout

This file was deleted.

4 changes: 2 additions & 2 deletions AFDateHelper/AFDateExtension.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// AFDateExtension.swift
//
// Version 2.0.1
// Version 2.0.2
//
// Created by Melvin Rivera on 7/15/14.
// Copyright (c) 2014. All rights reserved.
Expand All @@ -14,7 +14,7 @@ enum DateFormat {
case Custom(String)
}

extension NSDate {
public extension NSDate {

// MARK: Intervals In Seconds
private class func minuteInSeconds() -> Double { return 60 }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

A convenience extension for NSDate in Swift 1.2

![Sample Project Screenshot](Screenshot.png?raw=true "Sample Project Screenshot")
![Sample Project Screenshot](https://raw.github.com/melvitax/AFDateHelper/2.0.1/Screenshot.png "Sample Project Screenshot")


## Usage
Expand Down Expand Up @@ -57,7 +57,7 @@ date.dateAtStartOfWeek() -> NSDate
date.dateAtEndOfWeek() -> NSDate
```

### Time Interval Between Dates */
### Time Interval Between Dates
```Swift
date.minutesAfterDate(now) -> Int
date.minutesBeforeDate(now) -> Int
Expand Down

0 comments on commit 0e055ec

Please sign in to comment.