p2635 / 100-days-swift-ui Goto Github PK
View Code? Open in Web Editor NEWMy work on the '100 Days of SwiftUI' course from hackingwithswift.com.
Home Page: https://www.hackingwithswift.com/100/swiftui
My work on the '100 Days of SwiftUI' course from hackingwithswift.com.
Home Page: https://www.hackingwithswift.com/100/swiftui
Here is the code: TextField("Amount", value: $billAmount, format: .currency(code: "GBP"))
How does Swift know what I mean by .currency
?
Instead of manually clicking Assignees > assign yourself.
See if you can simplify your code in previous projects with day 23 ideas: https://www.hackingwithswift.com/100/swiftui/23
When I get to a point where I can write simple tests, I can also try this to learn CI/CD.
Similar to how I did it for https://github.com/p2635/cypress-10-fundamentals
tree
structure of the files and descriptions of eachProject: 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:
Solutions
Attempting to erase all content: going to iOS Simulator menu, and pressing "Reset Content and Settings". This worked but obviously wiped everything
The MVP looks horrible. Just take a look at #20 (comment)
There is a setting for Prune on Fetch, I turned it on but it didn't work. So I just did git fetch -p and it fixed things. You can also access that from the command palette.
Answer: missing id: \.self
.
Explanation: Every view needs an id, so that it knows to update the view when the state of the program changes.
Googled links:
https://www.hackingwithswift.com/forums/swiftui/compiler-warning-non-constant-range-argument-must-be-an-integer-literal/14878
https://stackoverflow.com/questions/69527614/swiftui-why-does-foreach-need-an-id
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??
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)
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.