Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PHImageKit/PHCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class PHCache: NSObject {
}

/**
Clear expired and overexeeded max size file cache. If file cache is bigger than maxFileCache size,
oldest files will be removed while file chache is 50% of the max size.
Clear expired and exceeded max size file cache. If file cache is bigger than maxFileCache size,
oldest files will be removed while file cache is 50% of the max size.
*/
func backgroundCleanExpiredDiskCache() {
var backgroundTask: UIBackgroundTaskIdentifier = 0
Expand Down
8 changes: 4 additions & 4 deletions PHImageKit/PHManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public typealias PHVoidCompletion = () -> Void
public typealias PHProgressCompletion = (_ percent : CGFloat) -> Void
public typealias PHManagerCompletion = (_ object: PHImageObject?) -> Void

/// PHManager is responsible for downloading images, cancel ongoing reques and handle cache.
/// PHManager is responsible for downloading images, cancel ongoing requests and handle cache.
open class PHManager: NSObject {

/// Shared Instance
Expand All @@ -57,7 +57,7 @@ open class PHManager: NSObject {
}

/**
Convinience method for downloading image from given url.
Convenience method for downloading image from given url.

- parameter url: Image URL
- parameter completion: Completion closure it returns image
Expand All @@ -69,7 +69,7 @@ open class PHManager: NSObject {
}

/**
Convinience method for downloading image data from given url.
Convenience method for downloading image data from given url.

- parameter url: Image URL
- parameter comletion: Completion closure returns raw image data
Expand All @@ -93,7 +93,7 @@ open class PHManager: NSObject {
}

/**
Purche memory and file cache.
Purge memory and file cache.

- parameter fileCache: If set to `true` file cache will be removed too.
- parameter completion: Optional completion closure.
Expand Down