🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Jakub Homik
    Jakub Homik
    3,500 Points

    VendingMachineError.invalidSelection - showing alert

    Posted January 21, 2020 8:52pm by Jakub Homik
    Jakub Homik
    3,500 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Comparing Answers

    0 Answers

  • Nila Palmo Ram
    Nila Palmo Ram
    4,303 Points

    Error: Cannot convert value of type 'Int' to expected argument type 'Double?'

    Posted July 10, 2019 6:05am by Nila Palmo Ram
    Nila Palmo Ram
    4,303 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Displaying Additional Views

    1 Answer

  • Nila Palmo Ram
    Nila Palmo Ram
    4,303 Points

    Error: Type 'Item' does not conform to protocol 'VendingItem'

    Posted June 29, 2019 10:59am by Nila Palmo Ram
    Nila Palmo Ram
    4,303 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Temporary Views

    1 Answer

  • Johnny Nguyen
    Johnny Nguyen
    3,875 Points

    Pasan's mistake

    Posted April 14, 2018 3:59am by Johnny Nguyen
    Johnny Nguyen
    3,875 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Comparing Answers

    1 Answer

  • Ben Payne
    Ben Payne
    3,549 Points

    The link for Temporary Views does not take you to the proper page.

    Posted October 31, 2017 7:44pm by Ben Payne
    Ben Payne
    3,549 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Temporary Views

    2 Answers

  • Christopher Badger
    Christopher Badger
    4,364 Points

    Why do we want the balance to reset to zero after an insufficient funds alert?

    Posted October 26, 2017 5:38pm by Christopher Badger
    Christopher Badger
    4,364 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Controlling Custom Views

    2 Answers

  • doesitmatter
    doesitmatter
    12,885 Points

    code glitch

    Posted September 4, 2017 4:34pm by doesitmatter
    doesitmatter
    12,885 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Comparing Answers

    1 Answer

  • Prem Agrawal
    Prem Agrawal
    65 Points

    I am having Swift Version 4 and hence present doesn't works

    Posted September 2, 2017 1:58pm by Prem Agrawal
    Prem Agrawal
    65 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Displaying an Alert View

    0 Answers

  • Jason Anders
    MOD
    Jason Anders
    Treehouse Moderator 145,860 Points

    Small Glitch in the video's code. Here's how to fix.

    Posted December 29, 2016 1:53am by Jason Anders
    Jason Anders
    Treehouse Moderator 145,860 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Comparing Answers

    2 Answers

  • Sara Worth
    Sara Worth
    5,225 Points

    There is a bug in the Vending Machine app. How to fix?

    Posted December 23, 2016 10:08pm by Sara Worth
    Sara Worth
    5,225 Points
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Comparing Answers

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.