File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,14 +37,20 @@ public struct AcknowList {
3737 Footer text to be displayed below the list of the acknowledgements.
3838 */
3939 public let footerText : String ?
40+
41+ public init ( headerText: String ? = nil , acknowledgements: [ Acknow ] , footerText: String ? = nil ) {
42+ self . headerText = headerText
43+ self . acknowledgements = acknowledgements
44+ self . footerText = footerText
45+ }
4046}
4147
4248extension AcknowList {
43- static func + ( lhs: AcknowList , rhs: AcknowList ) -> AcknowList {
44- return AcknowList (
45- headerText: lhs. headerText ?? rhs. headerText,
46- acknowledgements: lhs. acknowledgements + rhs. acknowledgements,
47- footerText: lhs. footerText ?? rhs. footerText
48- )
49- }
49+ public static func + ( lhs: AcknowList , rhs: AcknowList ) -> AcknowList {
50+ return AcknowList (
51+ headerText: lhs. headerText ?? rhs. headerText,
52+ acknowledgements: lhs. acknowledgements + rhs. acknowledgements,
53+ footerText: lhs. footerText ?? rhs. footerText
54+ )
55+ }
5056}
You can’t perform that action at this time.
0 commit comments