|
1 | 1 | <h1 align="center">SwiftUI Hooks</h1>
|
2 | 2 | <p align="center">A SwiftUI implementation of <a href="https://reactjs.org/docs/hooks-intro.html">React Hooks</a>.</p>
|
3 | 3 | <p align="center">Enhances reusability of stateful logic and gives state and lifecycle to function view.</p>
|
4 |
| -<p align="center"><a href="https://ra1028.github.io/SwiftUI-Hooks/documentation/hooks">📔 API Reference</a></p> |
| 4 | +<p align="center"><a href="https://ra1028.github.io/swiftui-hooks/documentation/hooks">📔 API Reference</a></p> |
5 | 5 | <p align="center">
|
6 |
| - <a href="https://github.com/ra1028/SwiftUI-Hooks/actions"><img alt="test" src="https://github.com/ra1028/SwiftUI-Hooks/workflows/test/badge.svg"></a> |
7 |
| - <a href="https://github.com/ra1028/SwiftUI-Hooks/releases/latest"><img alt="release" src="https://img.shields.io/github/v/release/ra1028/SwiftUI-Hooks.svg"/></a> |
| 6 | + <a href="https://github.com/ra1028/swiftui-hooks/actions"><img alt="test" src="https://github.com/ra1028/swiftui-hooks/workflows/test/badge.svg"></a> |
| 7 | + <a href="https://github.com/ra1028/swiftui-hooks/releases/latest"><img alt="release" src="https://img.shields.io/github/v/release/ra1028/swiftui-hooks.svg"/></a> |
8 | 8 | <a href="https://developer.apple.com/swift"><img alt="Swift5" src="https://img.shields.io/badge/language-Swift5-orange.svg"></a>
|
9 | 9 | <a href="https://developer.apple.com"><img alt="Platform" src="https://img.shields.io/badge/platform-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C-green.svg"></a>
|
10 | 10 | <a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-MIT-black.svg"></a>
|
@@ -82,28 +82,28 @@ import Hooks
|
82 | 82 | From Xcode menu: `File` > `Swift Packages` > `Add Package Dependency`
|
83 | 83 |
|
84 | 84 | ```text
|
85 |
| -https://github.com/ra1028/SwiftUI-Hooks |
| 85 | +https://github.com/ra1028/swiftui-hooks |
86 | 86 | ```
|
87 | 87 |
|
88 | 88 | #### [Swift Package Manager](https://www.swift.org/package-manager)
|
89 | 89 |
|
90 | 90 | In your `Package.swift` file, first add the following to the package `dependencies`:
|
91 | 91 |
|
92 | 92 | ```swift
|
93 |
| -.package(url: "https://github.com/ra1028/SwiftUI-Hooks"), |
| 93 | +.package(url: "https://github.com/ra1028/swiftui-hooks"), |
94 | 94 | ```
|
95 | 95 |
|
96 | 96 | And then, include "Hooks" as a dependency for your target:
|
97 | 97 |
|
98 | 98 | ```swift
|
99 | 99 | .target(name: "<target>", dependencies: [
|
100 |
| - .product(name: "Hooks", package: "SwiftUI-Hooks"), |
| 100 | + .product(name: "Hooks", package: "swiftui-hooks"), |
101 | 101 | ]),
|
102 | 102 | ```
|
103 | 103 |
|
104 | 104 | ### Documentation
|
105 | 105 |
|
106 |
| -- [API Reference](https://ra1028.github.io/SwiftUI-Hooks/documentation/hooks) |
| 106 | +- [API Reference](https://ra1028.github.io/swiftui-hooks/documentation/hooks) |
107 | 107 | - [Example apps](Examples)
|
108 | 108 |
|
109 | 109 | ---
|
|
0 commit comments