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 | |
alias aws=aws | |
# Root Command | |
function aws() { | |
if [[ $# -eq 0 ]]; then | |
echo "Incomplete: Please pass in a server to connect to" | |
else | |
connect $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
// Declaring ContainerView as a HOC | |
struct ContainerView<C: View> : View { | |
let childView: C | |
init(_ childView: () -> (C)) { | |
self.childView = childView() | |
} | |
var body: some View { | |
childView |
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
// Creating a new HOC Component | |
struct DraggableView<C: View> : View { | |
@State private var drawerOffset = CGSize.zero | |
private let childView: C | |
init (_ childView: () -> (C)) { | |
self.childView = childView() | |
} | |
// Handling business logic for drag gesture and animations |
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
// Creating a new HOC Component | |
struct DraggableView<C: View> : View { | |
@State private var drawerOffset = CGSize.zero | |
private let childView: C | |
init (_ childView: () -> (C)) { | |
self.childView = childView() | |
} | |
// Handling business logic for drag gesture and animations |