You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add convenience initializers accepting `any IRI.Representable` to all
types with IRI parameters, enabling Foundation URL support.
Changes:
- Person, Link, Generator, Category, Content: add convenience init
- Feed, Entry, Source: add convenience init for all IRI parameters
- Delegate to concrete IRI initializers using `.iri` property
- Add test demonstrating Foundation URL support
API now supports three patterns:
1. String literals via ExpressibleByStringLiteral
2. Concrete IRI types directly
3. Foundation URL and other IRI.Representable types
Example:
```swift
// All three work!
Person(name: "John", uri: "https://example.com") // String literal
Person(name: "John", uri: someIRI) // IRI instance
Person(name: "John", uri: someURL) // Foundation URL
```
All tests pass (23/23)
0 commit comments