Code Monkey home page Code Monkey logo

anishalamichhane's Projects

7-swifty-words icon 7-swifty-words

Challenge One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try extending this app to make sure you fully understand what’s going on: Use the techniques you learned in project 2 to draw a thin gray line around the buttons view, to make it stand out from the rest of the UI. If the user enters an incorrect guess, show an alert telling them they are wrong. You’ll need to extend the submitTapped() method so that if firstIndex(of:) failed to find the guess you show the alert. Try making the game also deduct points if the player makes an incorrect guess. Think about how you can move to the next level – we can’t use a simple division remainder on the player’s score any more, because they might have lost some points.

animation icon animation

This project contains my personal solution to the challenge 15 of hacking with swift by Paul Hudson.

animations-swiftui icon animations-swiftui

This project consists code to genetate animations and transitions using SwiftUI.

betterrest icon betterrest

This SwiftUI project is another forms-based app that will ask the user to enter information and convert that all into an alert.

bookworm icon bookworm

A SwiftUI app that keeps track of the books read by the user, ratings of book etc.

capital-cities icon capital-cities

This project contains my personal solution to the challenges of project 16 of hacking with swift.

challenge-3 icon challenge-3

This contains my personal solution to the challenges 1 ,2 and 3 of project 3 by hacking with swiftUI.

drawing icon drawing

This is a technique project which involves drawing in SwiftUI, including creating custom paths and shapes, animating your changes, solving performance problems, and more.

fireworks-night icon fireworks-night

This project contains my personal solution to the project 20 of hacking with swift.

guess-the-flag icon guess-the-flag

Check the code to run the game. Make sure you run it on Xcode as it is made on pure Swift language. Enjoy!

iexpenses icon iexpenses

It is an expense tracker app that separates personal costs from business costs.

instafilter icon instafilter

This project contains my personal solution to the project13 Challenges of HackingWithSwift.

instruments icon instruments

It is the swift code for an app explaining various methods of debugging in order to control the memory problems and other hazards of the app when run on a simulator or regular device.

local-notifications icon local-notifications

This project contains my personal solution to the challenges project 21 of hacking with swift.

marble-maze icon marble-maze

A swift game illustrating the Apple’s framework that handles the accelerometer and gyroscope inside all iOS devices. This is a part of project hacking with swift.

milestone-projects-4-6 icon milestone-projects-4-6

Challenge It’s time to put your skills to the test by making your own complete app from scratch. This time your job is to create an app that lets people create a shopping list by adding items to a table view. The best way to tackle this app is to think about how you build project 5: it was a table view that showed items from an array, and we used a UIAlertController with a text field to let users enter free text that got appended to the array. That forms the foundation of this app, except this time you don’t need to validate items that get added – if users enter some text, assume it’s a real product and add it to their list. For bonus points, add a left bar button item that clears the shopping list – what method should be used afterwards to make the table view reload all its data? Here are some hints in case you hit problems: Remember to change ViewController to build on UITableViewController, then change the storyboard to match. Create a shoppingList property of type [String] to hold all the items the user wants to buy. Create your UIAlertController with the style .alert, then call addTextField() to let the user enter text. When you have a new shopping list item, make sure you insert() it into your shoppingList array before you call the insertRows(at:) method of your table view – your app will crash if you do this the wrong way around. You might be tempted to try to use UIActivityViewController to share the finished shopping list by email, but if you do that you’ll hit a problem: you have an array of strings, not a single string. There’s a special method that can create one string from an array, by stitching each part together using a separator you provide. I’ll be going into it in project 8, but if you’re keen to try it now here’s some code to get you started: let list = shoppingList.joined(separator: "\n")

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.