GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

Day 47 - work in progress

Forums > 100 Days of SwiftUI

Hi all,

I'm working on the day 47 habit tracker challenge. It's not pretty yet, but here's the work in progress code in case it is useful to you. https://github.com/BillMoriarty/TrackPractice

I love this challenge - this is the kind of thing I want to make.

Need to figure out how to gitignore the xcode files...

take care Bill

3      

Hi Bill,

I used your code to compare your way to mine (once I had completed the challenge).

My code if you are interested: https://drive.google.com/file/d/17uABHgXsUhs2OgKsO2dGy1qcfTRnVitk/view?usp=sharing

By cons I have not saved in UserDefaults because DidSet is currently broken on Xcode 11.4 ... otherwise everything works. We did it relatively differently, it's interesting. I made separate Views.

The only weird thing I have is a message (not blocking) coming from the console: "UIScrollView does not support multiple observers implementing" but everything works...

4      

@linkiliz that's great! I'm going to check out your approach later tonight after work. Thanks for reaching out - I'll see if I find anything about that error, too. take care

3      

@Ryan  

Hi @BillMoriarty and @linkiliz, To avoid the error "UIScrollView does not support multiple observers", remove the NavigationView from AddActivityView (in NewActivityView.swift). You don't need that NavigationView because you allredy have a NavigationView inherited from ContentView, which embeds the AddActivityView. This error results from having nested NavigationViews, which is not necessary.

I'm posting this solution here also becuse this page is one of the first Google hits when one searches "UIScrollView does not support multiple observers". Ummm, like I did earlier today. :)

3      

Go further, faster with the Swift Career Accelerator.

GO FURTHER, FASTER Unleash your full potential as a Swift developer with the all-new Swift Career Accelerator: the most comprehensive, career-transforming learning resource ever created for iOS development. Whether you’re just starting out, looking to land your first job, or aiming to become a lead developer, this program offers everything you need to level up – from mastering Swift’s latest features to conquering interview questions and building robust portfolios.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.