Merge pull request #10 from heroesofcode/dependabot/github_actions/codecov/codecov-action-3.1.4 Bump codecov/codecov-action from 3.1.3 to 3.1.4
Merge pull request #10 from heroesofcode/dependabot/github_actions/codecov/codecov-action-3.1.4
Bump codecov/codecov-action from 3.1.3 to 3.1.4
DataLife is an observable data storage class
iOS / tvOS / macOS
import DataLife class ViewModel: DataLifeViewModel { var myName = DataLife<String>() func fetchMyName() { myName.value = "Darth Vader" } }
import UIKit class ViewController: UIViewController { private let viewModel = ViewModel() override func viewDidLoad() { super.viewDidLoad() setupState() setupFetchMyName() } private func setupFetchMyName() { viewModel.fetchMyName() } private func setupState() { viewModel.myName.observer(viewModel) { name in print(name) } } }
import DataLife
dependencies: [ .package(url: "https://github.com/joaolfp/DataLife.git", .upToNextMajor(from: "1.2.5")) ]
target '<Your Target Name>' do pod 'DataLife' end
$ pod install
github "heroesofcode/DataLife"
Coded by João Lucas
MIT License Copyright (c) 2020 João Lucas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. © 2020 GitHub, Inc.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Overview
DataLife is an observable data storage class
Support
iOS / tvOS / macOS
Usage
Installation
Swift Package Manager
CocoaPods
Carthage
Author
Coded by João Lucas
License