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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

  • 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
      • • 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
      • • Vibe Coding
    • Showing results for:
    • iOS
    • Build a Vending Machine App in Swift
    • Displaying Additional Views
    • Close
  • Jakub Homik
    Jakub Homik
    3,500 Points

    VendingMachineError.invalidSelection - showing alert

    Posted on Jan 21, 2020 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 on Jul 10, 2019 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 on Jun 29, 2019 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 on Apr 14, 2018 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 on Oct 31, 2017 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 on Oct 26, 2017 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 on Sep 4, 2017 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 on Sep 2, 2017 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,863 Points

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

    Posted on Dec 29, 2016 by Jason Anders
    Jason Anders
    Treehouse Moderator 145,863 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 on Dec 23, 2016 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.