Skip to content

Instantly share code, notes, and snippets.

View alvieirajr's full-sized avatar

Antônio Vieira alvieirajr

  • Brazil, Recife
View GitHub Profile
@alvieirajr
alvieirajr / combineSwiftUI.swift
Last active March 24, 2020 00:29
Combine + SwitUI
import SwiftUI
import Combine
struct ContentView: View {
var presenter = Presenter()
/*SwiftUI manages the storage of any property you declare as a state. When the state value changes, the view invalidates its appearance and recomputes the body. Use the state as the single source of truth for a given view.*/
@State private var stringToDisplay:String?
var body: some View {
let vStack = VStack {
Text(stringToDisplay ?? "Empty")
vagrant : INFO global: Vagrant version: 2.3.4
No linha:1 caractere:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.3.4:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.7.6
INFO global: RubyGems version: 3.1.6
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.3.4\\gems\\vagrant-2.3.4\\bin\\vagrant"