File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ ShareLinkButton(item: URL(string: "https://example.com")!, icon: UIImage(systemN
6666
6767### Sharing CLLocation
6868``` swift
69- let location = CLLocation (latitude : 37.7749 , longitude : -122.4194 ) // Example coordinates for San Francisco
70-
71- // Create a ShareLinkButton using the defined location.
72- ShareLinkButton (item : location, label : {
73- Text (" Share Location" ) // This is the label for the button.
74- })}
69+ let location = CLLocation (latitude : 37.7749 , longitude : -122.4194 ) // Example coordinates for San Francisco
70+
71+ // Create a ShareLinkButton using the defined location.
72+ ShareLinkButton (item : location, label : {
73+ Text (" Share Location" ) // This is the label for the button.
74+ })}
7575})
7676```
7777
@@ -108,11 +108,11 @@ class CustomItemSource: NSObject, UIActivityItemSource {
108108 }
109109}
110110```
111- ``` swift
112- ShareLinkButton (itemSource : CustomItemSource (), label : {
113- Text (" Share with Custom Source" )
114- })
115- ```
111+ ``` swift
112+ ShareLinkButton (itemSource : CustomItemSource (), label : {
113+ Text (" Share with Custom Source" )
114+ })
115+ ```
116116
117117## License
118118This package is licensed under the MIT license. See the LICENSE file for more details.
You can’t perform that action at this time.
0 commit comments