This file contains hidden or 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
struct MyView: View { | |
@StateObject var myValue = store.subscribe() | |
.map { state in state.myValue } | |
.toObservableObject(animation: .interactiveSpring()) // optional animation | |
@StateObject var myDerivedValue = store.subscribe() | |
.map { state in state.myValue } | |
.removeDuplicates() | |
.map { value in complexTransformation(value) } // triggered only on new value | |
.toObservableObject() |
This file contains hidden or 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
/sbin/iptables -F | |
/sbin/ip6tables -F | |
## Remove all current entries | |
/sbin/iptables -X | |
/sbin/ip6tables -X | |
## Drop inputs |