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
| pragma solidity ^0.6.0; | |
| import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
| import "@openzeppelin/contracts/math/SafeMath.sol"; | |
| contract Commune is ERC20 { | |
| using SafeMath for uint256; | |
| constructor() public ERC20("Commune DAI", "COMD") { | |
| } |
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 HorizontalList<Item, Card, Detail>: View where Item: NSManagedObject, Card: View, Detail: View{ | |
| var items: FetchedResults<Item> | |
| var card: (Item) -> Card | |
| var detail: (Item) -> Detail | |
| // init(items: FetchedResults<Item>, @ViewBuilder card: @escaping (Item) -> Card, @ViewBuilder detail: @escaping (Item) -> Detail) { | |
| // self.items = items | |
| // self.card = card | |
| // self.detail = detail | |
| // } |
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
| // | |
| // TextViewExperiment.swift | |
| // Wilson Cusack | |
| // | |
| // Most of the code from https://www.icalvin.dev/post/403 | |
| // There's a few changes, but mainly just the ability to close the keyboard. | |
| // | |
| import SwiftUI | |
| import UIKit |
NewerOlder