TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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      

Hacking with Swift is sponsored by Blaze.

SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!

Reserve your spot now

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.