Skip to content

Commit

Permalink
Showing APS env in example
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi committed Dec 18, 2024
1 parent 7a2f5a6 commit 56035ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/EmbeddedProvisionExample/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import EmbeddedProvision
import SwiftUI

struct ContentView: View {
let provision = try? EmbeddedProvision.load()
Expand All @@ -8,6 +8,9 @@ struct ContentView: View {
VStack {
if let provision = provision {
Text("You're app was signed with: \(provision.name)")
Text(
"APNs environment: \(String(describing: provision.entitlements.apsEnvironment))"
)
} else {
Text("No embedded provision found. Are you running on Simulator?")
.multilineTextAlignment(.center)
Expand Down

0 comments on commit 56035ea

Please sign in to comment.