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      

Hacking with Swift is sponsored by try! Swift Tokyo.

SPONSORED Ready to dive into the world of Swift? try! Swift Tokyo is the premier iOS developer conference will be happened in April 9th-11th, where you can learn from industry experts, connect with fellow developers, and explore the latest in Swift and iOS development. Don’t miss out on this opportunity to level up your skills and be part of the Swift community!

Get your ticket 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.