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
import Foundation | |
import CryptoKit | |
struct AuthDataManager { | |
//MARK: - Encrypt/Decrypt Logic | |
/// Generate a symmetric key from a password | |
/// - Parameter password: password to use | |
/// - Returns: key |
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
# Define the relative path to the file containing the access token | |
TOKEN_FILE_PATH="${SRCROOT}/Config/access_token.txt" | |
# Check if the file exists | |
if [ -f "$TOKEN_FILE_PATH" ]; then | |
# Read the access token from the file | |
ACCESS_TOKEN=$(cat "$TOKEN_FILE_PATH") | |
else | |
echo "Access token file not found at $TOKEN_FILE_PATH" | |
exit 1 |
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
import UIKit | |
class ParentViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let childVC = ChildViewController() | |
displayContentController(content: childVC) | |
} | |
OlderNewer