Post

Replies

Boosts

Views

Activity

Reply to SwiftUI beginner question "cannot infer contextual base in reference to member"
Thank you darkpaw for taking the time to help. Your code worked flawlessly as expected. One Note If another rookie stumbles on to this looking for answers I did have an issue of my own making. The code above kept crashing on the ternary. "Cannot use instance member 'nowtime' within property initializer; property initializers run before 'self' is available" After some research yesterday I found out that structs do not initialize vars in order and only when needed. Once I moved the vars nowtime and oktime out of the struct under the import statements everything went smoothly. Thanks again darkpaw!
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’22