Skip to content

Commit

Permalink
More public initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
rocxteady committed Jun 29, 2024
1 parent 1c680b2 commit 38f9d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/WPSwift/Models/Post.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public struct RenderedContent: Codable {
public let rendered: String?
public let protected: Bool?

init(rendered: String? = nil, protected: Bool? = nil) {
public init(rendered: String? = nil, protected: Bool? = nil) {
self.rendered = rendered
self.protected = protected
}
Expand All @@ -188,7 +188,7 @@ public struct LinkDetails: Codable {
public let post_type: String?
public let taxonomy: String?

init(href: String? = nil, embeddable: Bool? = nil, post_type: String? = nil, taxonomy: String? = nil) {
public init(href: String? = nil, embeddable: Bool? = nil, post_type: String? = nil, taxonomy: String? = nil) {
self.href = href
self.embeddable = embeddable
self.post_type = post_type
Expand Down

0 comments on commit 38f9d48

Please sign in to comment.