GithubHelp home page GithubHelp logo

peterfriese / colors Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 2.0 15.23 MB

Colors is a sample for demonstrating the new SwiftUI 2 application life cycle.

Home Page: https://peterfriese.dev/ultimate-guide-to-swiftui2-application-lifecycle/

License: Apache License 2.0

Swift 100.00%
lifecycle swift swiftui

colors's Introduction

Hi, I'm Peter ๐Ÿ‘‹๐Ÿผ

I'm a Developer Advocate (which is just a fancy word for "Software Engineer who loves to tinker around with technology and teach other people") on the Firebase team ๐Ÿ”ฅ.

My recent posts on peterfriese.dev

My recent videos

My recent Firebase videos

Find me around the web ๐ŸŒŽ

colors's People

Contributors

peterfriese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

colors's Issues

Images not found: Assets naming issue vs. color array names issue.

There is a mismatch between the color assets naming, which are in lowercase in the folder, ex. red, green, blue, etc and the color array which has the first letter capitalized, ex. Red, Green, Blue, etc.

This causes the color not to be found and no images are displayed.

In ContentView.swift
struct ContentView: View {
var colors = ["Red", "Green", "Yellow", "Blue", "Pink", "Purple"]
...

It should be
var colors = ["red", "green", "yellow", "blue", "pink", "purple"]

Screen Shot 2020-10-22 at 4 13 20 PM

Also, when you run in the terminal, use the new lowercase convention for colors.
$xcrun simctl openurl booted colors://green

-Best,
Mic Capota
Revo Media LLC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.