Skip to content

Commit 5f41f0b

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents 46325cc + 8eb4a80 commit 5f41f0b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Example:
6969
```swift
7070
switch graph.type {
7171
case .video(let attributes):
72-
print(attributes.king) // VideoAttributes.SubKind.movie
72+
print(attributes.kind) // VideoAttributes.SubKind.movie
7373
print(attributes.actors) // []
7474
print(attributes.directors) // []
7575
print(attributes.writers) // []
@@ -82,8 +82,6 @@ default:
8282
}
8383
```
8484

85-
## Types
86-
8785
# Installation
8886

8987
### Swift Package Manager
@@ -94,9 +92,13 @@ SwiftyOpenGraph relies on Swift Package Manager and is installed by adding it as
9492

9593
We have chosen to use the CC0 1.0 Universal license for SwiftyOpenGraph. The following short explanation has no legal implication whatsoever and does not override the license in any way: CC0 1.0 Universal license gives you the right to use or modify all of SwiftyOpenGraphs code in any (commercial or non-commercial) product without mentioning, licensing or other headaches of any kind.
9694

95+
# Background
96+
97+
When we were trying to find an OpenGraph implementation in Swift there was only one result. That result was using Regular Expressions to parse the meta tags, which we find unacceptable. So we set out to create one that uses `SwiftSoup` to properly parse the html of a webpage. We also wanted to make sure this project is a perfect 1:1 abstraction of the OpenGraph protocol into Swift. If there are any additions or changes made to the protocol, we will adopt them as fast as possible.
98+
9799
<!-- References -->
98100

99-
[GithubCI_Status]: https://github.com/Quintschaf/SwiftyOpenGraph/actions/workflows/swift.yml/badge.svg?branch=master
101+
[GithubCI_Status]: https://github.com/Quintschaf/SwiftyOpenGraph/actions/workflows/swift.yml/badge.svg?branch=main
100102
[GithubCI_URL]: https://github.com/Quintschaf/SwiftyOpenGraph/actions/workflows/swift.yml
101103
[LICENSE_BADGE]: https://badgen.net/github/license/quintschaf/SwiftyOpenGraph
102104
[LICENSE_URL]: https://github.com/Quintschaf/SwiftyOpenGraph/blob/master/LICENSE

0 commit comments

Comments
 (0)