Skip to content

Commit

Permalink
fix: iOS setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
n8chur authored and roperzh committed Nov 14, 2019
1 parent b91986e commit 0836885
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/targets/src/targets/ios.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,14 @@ export const iosHandler: CompilerTargetHandler = async (program) => {
import Diez
class ViewController: UIViewController {
let diez = Diez<${program.localComponentNames[0]}>()
private lazy var diez = Diez<${program.localComponentNames[0]}>(view)
override func viewDidLoad() {
super.viewDidLoad()
diez.attach(self, subscriber: {(component: ${program.localComponentNames[0]}) in
// ...
})
}
override func viewDidLoad() {
super.viewDidLoad()
diez.attach { [weak self] component in
// ...
}
}
}
`);
};

0 comments on commit 0836885

Please sign in to comment.