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
public extension View { | |
/// Present another SwiftUI `View` by embedding it into a `UIHostingController` and presenting it on the key `UIViewController`, on the top-most `UIWindow`. | |
/// | |
/// This extension was originally copied from [this Medium article](https://medium.com/@cuongnguyenhuu/how-to-present-a-screen-with-modalpresentationstyle-in-swiftui-like-uikit-fe9b53e09d72) written by Cuon (Currie) H. NGUYEN. | |
/// | |
/// The code has been updated to fix warnings and implicitly unwrapped optional variables. | |
/// - Parameters: | |
/// - isPresented: Whether or not the `Content` view is presented. | |
/// - modalPresentationStyle: The `UIModalPresentationStyle` to present with. | |
/// - content: The `Content` view that will desplay when `isPresented` is `true`. |
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 SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
CoreDataFetchRequestWrapper(Relationship.self) { relationships in | |
ForEach(relationships, id: \.self) { relationship in | |
Text(relationship.id?.uuidString ?? "Rawr") | |
} | |
} | |
} |
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
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
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
Verifying my Blockstack ID is secured with the address 1H6khUEby5fr8P46kojvoUyLvtksMiekMf https://explorer.blockstack.org/address/1H6khUEby5fr8P46kojvoUyLvtksMiekMf |