Post

Replies

Boosts

Views

Activity

Comment on How to access variable in separate function
You have not read carefully: I moved changed in the scope of Practise. To have func outside of Practise, you need to use Environment var, not State var. See here detailed explanations: https://stackoverflow.com/questions/56718802/how-to-update-a-swiftui-view-state-from-outside-uiviewcontroller-for-example
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Comment on NSScrollview - Pagination effect - Stop animation
I may miss something in your intent. Do you want the notification being sent and processed during scroll, to check you don't exceed some limits ? Or do you want to send only at start of scrolling, which is what the code is apparently doing now. If the latter, you should see several print during scrolling. Is it the case ?
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’21
Comment on Objective c with iOS15 tableView expandable
What is the crash message ? I was suggesting a possible problem, if you don't care, that's OK for me, no worry. But I have nothing to check if you don't check yourself first and answer to replies.Note that the code you used dates from 2018. It is already a bit old (at the time iOS 12 or 13). There is an interesting discussion here for negative row value: https://stackoverflow.com/questions/13585220/why-is-the-row-property-of-nsindexpath-a-signed-integer.   Have a good day.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Comment on Nib file not showing up in Xcode 13.0 interface builder
When you select your project, at the very top of the file browser, and open File Inspector, what project format do you get (it is listed as Xcode x.y compatible). Could you try to set to 13.0 ? What is the answer to the last question "When you look at issues Navigator (left panel), do you get error messages ?" Can you also open the nib file as Source code (right click on the nib file in file browser and select "Open As >"
Oct ’21
Comment on Swift reusable cells with corrupted indexPath
Post an email for contact. And remove it as soon as I have acknowledged receipt. Or just post the compressed full folder here or somewhere on GitHub.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on ForEach - Deleting last index causes Index out of bounds error
Is Workout a struct you defined (I cannot find it in doc) ? What are WorkoutCard and removeWorkout ? Thanks for the code but it is not ready to run.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Use of Prefs: Settings
Once in your app-settings, it is very easy to go (manually) to general settings. Do you mean you need to go programmatically to those general settings ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Sort by date after searching
"Newest" or "Last updated" do work for me: I search, get 16 results "by relevance" then ask for Newest, still 16, ordered by date, ask Last Update, works also.
Replies
Boosts
Views
Activity
Oct ’21
Comment on Swift reusable cells with corrupted indexPath
I understand the use case. But It would be helpful to know on which line of code the crash occurs.    What about cell.initialize(withDelegate:) ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on How to access variable in separate function
You have not read carefully: I moved changed in the scope of Practise. To have func outside of Practise, you need to use Environment var, not State var. See here detailed explanations: https://stackoverflow.com/questions/56718802/how-to-update-a-swiftui-view-state-from-outside-uiviewcontroller-for-example
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Scroll View with text and img inside
My question was: why don't you put directly the textViews ("Lorem ipsum…") in a view (not view controller) inside this Container View, close to what you showed in your original post ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Xcode playground failing on pow() function?
So the culprit seems to be in Monterey…
Replies
Boosts
Views
Activity
Oct ’21
Comment on NSScrollview - Pagination effect - Stop animation
I may miss something in your intent. Do you want the notification being sent and processed during scroll, to check you don't exceed some limits ? Or do you want to send only at start of scrolling, which is what the code is apparently doing now. If the latter, you should see several print during scrolling. Is it the case ?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on NSScrollview - Pagination effect - Stop animation
OK. But are you sure the notification is sent during scroll ? Do you see "Scroll Started" printed during scroll ?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Scroll View with text and img inside
In what you show here, I do not see the textViews ("Lorem ileum…") inside the view inside the ScrollView. That's what I would do.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on A button vary for traits doesn’t appear in Xcode 13
Advice to all: post bug reports.
Replies
Boosts
Views
Activity
Oct ’21
Comment on Objective c with iOS15 tableView expandable
What is the crash message ? I was suggesting a possible problem, if you don't care, that's OK for me, no worry. But I have nothing to check if you don't check yourself first and answer to replies.Note that the code you used dates from 2018. It is already a bit old (at the time iOS 12 or 13). There is an interesting discussion here for negative row value: https://stackoverflow.com/questions/13585220/why-is-the-row-property-of-nsindexpath-a-signed-integer.   Have a good day.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Cannot convert value of type 'Binding<[Video]>.Type' to expected argument type 'Binding<[Video]>'
Could you post a complete code where you get the error ?     Have you defined contentData as @State var ?
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Nib file not showing up in Xcode 13.0 interface builder
When you select your project, at the very top of the file browser, and open File Inspector, what project format do you get (it is listed as Xcode x.y compatible). Could you try to set to 13.0 ? What is the answer to the last question "When you look at issues Navigator (left panel), do you get error messages ?" Can you also open the nib file as Source code (right click on the nib file in file browser and select "Open As >"
Replies
Boosts
Views
Activity
Oct ’21