Skip to content

Commit

Permalink
Removed deprecated ActivitySheet modifier in favor of the iOS 16 `S…
Browse files Browse the repository at this point in the history
…hareLink`.
  • Loading branch information
zmian committed Feb 3, 2024
1 parent b7a5069 commit 500d14e
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 328 deletions.
8 changes: 4 additions & 4 deletions Example/Models/Menu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension Menu: CaseIterable {
popups,
textFields,
story,
activitySheet,
share,
hapticFeedback,
crypt
]
Expand Down Expand Up @@ -106,9 +106,9 @@ extension Menu {
content: StoryPreviewView()
)

private static let activitySheet = Self(
title: "Activity Sheet",
content: ActivitySheetView()
private static let share = Self(
title: "Share",
content: ShareView()
)

private static let hapticFeedback = Self(
Expand Down
53 changes: 0 additions & 53 deletions Example/Views/ActivitySheetView.swift

This file was deleted.

27 changes: 27 additions & 0 deletions Example/Views/ShareView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// Xcore
// Copyright © 2021 Xcore
// MIT license, see LICENSE file for details
//

import SwiftUI

struct ShareView: View {
var body: some View {
List {
ShareLink("Share License Agreement", item: "License Agreement...")
.buttonStyle(.capsule)

ShareLink(item: "License Agreement...") {
Label("Share License Agreement", systemImage: .doc)
}
}
}
}

// MARK: - Preview

#Preview {
ShareView()
.embedInNavigation()
}
51 changes: 0 additions & 51 deletions Sources/Xcore/Cocoa/Extensions/UIActivity+Extensions.swift

This file was deleted.

This file was deleted.

Loading

0 comments on commit 500d14e

Please sign in to comment.