generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add consent document viewer to profile screen (#26)
* Add consent document viewer to profile screen * Update strings, improve organization, download consent if not present * Add privacy policy link
- Loading branch information
1 parent
22e67a6
commit dbbdb1f
Showing
7 changed files
with
207 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// ConsentPDFViewer.swift | ||
// LifeSpace | ||
// | ||
// Created by Vishnu Ravi on 6/26/24. | ||
// | ||
|
||
import PDFKit | ||
import SwiftUI | ||
|
||
struct ConsentPDFViewer: UIViewRepresentable { | ||
let url: URL | ||
|
||
func makeUIView(context: Context) -> PDFView { | ||
let pdfView = PDFView() | ||
pdfView.document = PDFDocument(url: url) | ||
pdfView.autoScales = true | ||
return pdfView | ||
} | ||
|
||
func updateUIView(_ uiView: PDFView, context: Context) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.