File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,21 @@ public struct ActivityItem {
77 internal var activities : [ UIActivity ]
88 internal var excludedTypes : [ UIActivity . ActivityType ]
99
10- /// The
10+ /// Represents an activity for presenting an ActivityView (Share sheet) via the `activitySheet` modifier
1111 /// - Parameters:
1212 /// - items: The items to share via a `UIActivityViewController`
1313 /// - activities: Custom activities you want to include in the sheet
14+ /// - excludedTypes: Activity types to exclude from the sheet
1415 public init ( items: Any ... , activities: [ UIActivity ] = [ ] , excludedTypes: [ UIActivity . ActivityType ] = [ ] ) {
16+ self . init ( itemsArray: items, activities: activities, excludedTypes: excludedTypes)
17+ }
18+
19+ /// Represents an activity for presenting an ActivityView (Share sheet) via the `activitySheet` modifier.
20+ /// - Parameters:
21+ /// - itemsArray: The items to share via a `UIActivityViewController`
22+ /// - activities: Custom activities you want to include in the sheet
23+ /// - excludedTypes: Activity types to exclude from the sheet
24+ public init ( itemsArray items: [ Any ] , activities: [ UIActivity ] = [ ] , excludedTypes: [ UIActivity . ActivityType ] = [ ] ) {
1525 self . items = items
1626 self . activities = activities
1727 self . excludedTypes = excludedTypes
You can’t perform that action at this time.
0 commit comments