Skip to content

Commit

Permalink
Update documentation for using view extension
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Mar 20, 2024
1 parent d7505c6 commit f13c878
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Sources/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ downloading again.

### Loading Images in Simple Way

- <doc:UsingViewExtensions>
- ``KingfisherManager``
- ``KingfisherCompatible``
- ``KingfisherWrapper``
- ``KingfisherManager``
- ``Source``

### Loading Options
Expand Down
11 changes: 0 additions & 11 deletions Sources/Documentation.docc/UsingViewExtensions.md

This file was deleted.

12 changes: 12 additions & 0 deletions Sources/General/Kingfisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ public struct KingfisherWrapper<Base> {

/// Represents an object type that is compatible with Kingfisher. You can use ``kf`` property to get a
/// value in the namespace of Kingfisher.
///
/// In Kingfisher, most of related classes that contains an image (such as `UIImage`, `UIButton`, `NSImageView` and
/// more) conform to this protocol, and provides the helper methods for setting an image easily. You can access the `kf`
/// property and call its `setImage` method with a certain URL:
///
/// ```swift
/// let imageView: UIImageView
/// let url = URL(string: "https://example.com/image.jpg")
/// imageView.kf.setImage(with: url)
/// ```
///
/// For more about basic usage of Kingfisher, check the <doc:CommonTasks> documentation.
public protocol KingfisherCompatible: AnyObject { }

/// Represents a value type that is compatible with Kingfisher. You can use ``kf`` property to get a
Expand Down

0 comments on commit f13c878

Please sign in to comment.