GithubHelp home page GithubHelp logo

p2635 / 100-days-swift-ui Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 25.6 MB

My work on the '100 Days of SwiftUI' course from hackingwithswift.com.

Home Page: https://www.hackingwithswift.com/100/swiftui

Swift 100.00%
100daysofswiftui swift swiftui

100-days-swift-ui's Introduction

Hi ๐Ÿ‘‹, I'm Phil

A Test Engineer from the UK.

p2635

gorilla

Connect with me:

philipw1 philipw1

Languages and Tools:

css3 cypress git html5 javascript jekyll linux mysql postman python swift

100-days-swift-ui's People

Contributors

p2635 avatar

Watchers

 avatar

100-days-swift-ui's Issues

Update the main `README.md`

  • Change it so the main README includes a tree structure of the files and descriptions of each
  • Each folder (project) would then have its own README with more details

How do I set locale manually for iOS simulator?

Project: WeSplit App
Need: Need to be able to set locale for the test device (simulator)
Purpose: So I test the text field currency for the bill amount changes accordingly

[Bug] Simulator hangs on black screen when setting language manually

Reproduce steps:

  1. Build and run the WeSplit project, it was working initially.
  2. Changed language on the iPhone 14 Pro device (from US to UK English)
  3. It restarted to a black screen.

black screen

or gets stuck here:
black screen with setting language

Solutions
Attempting to erase all content: going to iOS Simulator menu, and pressing "Reset Content and Settings". This worked but obviously wiped everything

Time Converter App: Add conversion for temp, length and volume

https://www.hackingwithswift.com/100/swiftui/19

Which units you choose are down to you, but you could choose one of these:

Temperature conversion: users choose Celsius, Fahrenheit, or Kelvin.
Length conversion: users choose meters, kilometers, feet, yards, or miles.
Time conversion: users choose seconds, minutes, hours, or days.
Volume conversion: users choose milliliters, liters, cups, pints, or gallons.

I originally chose time, but maybe I can do them all in one??

Time Converter App: Show only relevant output unit options

Here is a start, this shows only different options (i.e. if seconds is selected as an input unit option, then seconds should not be shown for output unit option)

Mock:
image

if $0 != inputUnit {
  Text($0)
}

The only problem I had was not being able to do this requirement:

When user selects an input unit
Then the app auto-selects the first output unit on the list
(instead of having the previous output unit selected, which the mock above shows! You can see nothing is selected, that's the bug)

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.