Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #42 from facebook/richardross.opengraphcontent.init
Browse files Browse the repository at this point in the history
Add constructor for OpenGraphShareContent.
  • Loading branch information
richardjrossiii committed Aug 22, 2016
2 parents 96665c4 + 8db2c4d commit 4f314d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Sources/Share/Content/OpenGraph/OpenGraphShareContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ public struct OpenGraphShareContent {
/// Property name that points to the primary Open Graph Object in the action. This is used for rendering the preview of the share.
public var previewPropertyName: OpenGraphPropertyName?

/**
Create a new OpenGraphShareContent.
- parameter action: The action to be shared.
- parameter previewPropertyName: Property name that points to the primary Open Graph Object in the action.
*/
public init(action: OpenGraphAction? = nil, previewPropertyName: OpenGraphPropertyName? = nil) {
self.action = action
self.previewPropertyName = previewPropertyName
}

//--------------------------------------
// MARK: - ContentProtocol
//--------------------------------------
Expand Down

0 comments on commit 4f314d2

Please sign in to comment.