twostraws / unwrap Goto Github PK
View Code? Open in Web Editor NEWLearn Swift interactively on your iPhone.
Home Page: https://www.hackingwithswift.com
License: Other
Learn Swift interactively on your iPhone.
Home Page: https://www.hackingwithswift.com
License: Other
I can't remember the exact code but it's something like below. "Odd number" was the correct answer, but "Even number" was the accepted answer.
let multiplied = 81
if multiplied % 2 == 0 {
print("Even number")
} else {
print("Odd number")
}
I saw some user-facing strings that are not wrapped in an NSLocalizedString
and I was wondering about the plans of localizing the app?
It might be a good idea to prepare for that, and it could be a nice task to get an overview of the code base. :)
(I might want to pick this one up myself 😄)
If you do a lesson again you don't get any more points. The lesson questions are different from the challenge questions, so there is value in doing them multiple times. But you are not rewarded for doing them again.
Is this feature being considered ?
When tapping any row in the Learn section, the text accompanying the video becomes editable by double tapping it
On the iPhone SE when you first run the app, the section of Badges on the home tab, some of the badges is cut off. But when you go to the Learn tab and earn some points, this visual bug disappears. Also you cannot navigate through the rest of the badges. You can see this bug again by closing the app and earn a few points.
It would be awesome too see how far along on the challenges you are!
Sometimes there is duplicates in the daily challenges questions.
To recreate the bug, simply restart the app on ur phone or simulator and then do your daily challenges. Happens pretty frequently.
Steps:
Expected:
Noise
Actual:
Silence
device: iPhone 6s, iOS 12.1.4
I'm not sure exactly how to reproduce, and unfortunately I've only seen it once, but I crashed today in one of the exercises during my first daily quiz. Unfortunately I didn't think at the time to grab a screenshot or call stack.
The problem itself asked the user to drag the tiles into the working area to complete an expression using the ternary operator to return a true value for a new constant if both existing variables were true (or something like that). The app froze when I dragged the equals sign into the working area (I think I had most of the other tiles in place already).
At first I didn't realize it had crashed, but when I returned to Xcode I saw it stopped on Unwrap/Activities/Practice/TapToCode/TapToCodeModel.swift line 67, "usedWords.insert(word, at: destinationIndexPath.item)". There was an out of bounds exception, I believe.
Sorry for the lack of information here. If I knew an easy way to return to this problem I'd give it a shot and see if I could reproduce. If you have any suggestions or want me to try anything, I'm happy to do so.
Thanks for writing this fantastic app!
-Eli
Describe the bug
Current Streak is not updated.
To Reproduce
Open the app daily for multiple days.
Expected behavior
Increasing "Current Streak"-count and "Best Streak"-count on "Home"-Screen.
Actual behavior
"Current Streak"-count and "Best Streak"-count are not updated and stay at 1.
As shown in the first screenshot, I completed multiple daily challenges in a row and thus opened the app these days. But as shown in the second screenshot, my "Current Streak"-count does not increase and I did not get the badge either.
Smartphone (please complete the following information):
First off, I want to say that the app looks awesome! 😃
I ran into a compilation issue on the way to work that I thought I would file here.
I might just be missing something so I apologize in advance if that's the case.
I see the following error:
Fatal error: Unexpectedly found nil while unwrapping an Optional value
for this line
// NewsDataSource.swift
var containsNewArticles: Bool {
get {
if let newestArticleID = articles.first?.id {
// This line here
if newestArticleID > User.current.latestNewsArticle {
return true
}
}
set {
....
}
A quick fix I added to get the app to compile is to conditionally unwrap the User.current
as so:
if let user = User.current, newestArticleID > user.latestNewsArticle {
However, I think it would help to understand why User.current
was nil in the first place to see if this is the best fix. There are other places where User.current
is being used so it could possibly affect other areas.
Please close if this is a non issue.
This was was a reply to your tweet regarding the new TestFlight build released yesterday. As far as I can tell, this could but should not happen. I have not seen this type of issue outside of TestFlight.
I noticed that, in TestFlight, earlier builds are not being listed when I go to TestFlight>Unwrap - Learn Swift>Previous Builds>1.0
If you would like, I could test this via a closed TestFlight and see if this will continue to be a problem.
Sent with GitHawk
There are lots of articles, would be nice to have a visual beside the link showing it being as read.
Steps:
Expected:
Actual:
Notes:
Minor suggestion: I would love the UITabBarItems to be tappable and cause the content to scroll to the top.
Steps to reproduce:
I'm old school and a box means multiple choice and circle means single choice? Is this also true for Swift / iOS?
I downloaded the Zip, extracted it, opened the Xcode project file and tried to compile it without any changes. But the project doesn't compile. Instead it shows this error:
Swift Compiler Error
No such module 'SwiftEntryKit'
ChallengesCoordinator.swift
Since the project is open source, it would be trivial to setup CircleCI to ensure that the project builds, and the unit test and UI tests pass. Paul would have to authorize CircleCI on this repo, but a PR could be done to setup the yaml file used to configure CircleCI.
On every PR it could be shown how the code coverage is changing?
CodeCov is a free open source project and it's visualization is awesome. Paul would have to authorize the access, and set the token up in circle ci or what ever ci system is used.
lots of deprecations coming from pods, etc.
NSLayoutAttribute has been renamed to NSLayoutConstraint.Attribute
NSLayoutRelation has been renamed to NSLayoutConstraint.Relation
The above errors are being thrown when loading up the workspace file, and trying to play on iOS 12.
Is this because the app currently doesn't support iOS 12 at this time?
Cheers
Record if the person got any question right or wrong and use spaced repetition to determine when they would be asked the question again. This would be a huge improvement as you would be asked questions you struggled with or haven't seen first.
Also analytics could be added to report troublesome questions. For example if a question has a really low success rate the question might be worded poorly.
I think a pop-up alerting the user as to why their answer was wrong during the review process would help teach the content more. Now you can get an answer wrong and not review your work or figure out what mistake you made.
But if I change the parameters names to input1 and input2 it passes. It isn't intuitive from the question that the parameter names have to be input1 and input2
I don't know if it would be better to say what the parameter names have to be or make the matching work.
This also fails for other questions where you have to pass in parameter names:
Hey 👋
Thank you for sharing your knowledge by creating this app & repo. 🤘
I'm discovering Swift lately and really like your resources.
Coming from a design background wanted to share the free iOS glyphs icon library from @icons8
Their complete library is huge and the iOS style. The license would be fit for this project.
📱https://icons8.com/ios
👩⚖️https://icons8.com/license
You're using Font Awesome and this resource is great and often used in web development. Maybe the iOS glyph icons would make the tab bar more Apple like.
What do you think? Is it worth, otherwise just see it as a link reference. ✌️
It says “Which of these make result an integer equal to 10”. The 10 should be a 5 here, considering the answers options that are counted as correct
Hi,
This is a very good tool for lear but I think would be useful for all users that you publish a Testflight Link for recive the last updates in our devices directly.
Since this is an open source project there should be CI setup on the repo. Paul would need to setup the tokens. I'd be happy to setup the build configs for the project.
Bitrise also offers free upgraded plans for open source projects. More info can be found here.
https://blog.bitrise.io/free-developer-plan-features-for-open-source-projects-on-bitrise
You can't seem to finish the "Protocols and extensions: Summary" section under "Protocols" under the "Learn" tab. You get the points for completing it, but you don't get the green check mark or the badge for completing the section (Provided you completed all the other lessons in it)
In the Target I switched it to universal and ran it on my iPad and it looks okay, some minor layout stuff, but doesn't by any means look horrible. Thoughts?
I'm not sure if this is intended behavior, but you can answer a couple of questions on the daily challenge and then close the app. Opening the app back up has the daily challenge reset as if you haven't attempted it.
I believe it should track a user's progress so that the daily challenge can be completed throughout the day and not all at once.
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.