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 How Do You Assign Int To UILabel
removed
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Modifying the Y-position of navigation bar isn't possible in iOS 15.1 Beta / iOS 15 simulators
@Rincewind   Thanks for this definitive answer; that closes the question. However, I do not understand how it worked once on iPad and only once ! And seems to work on iPhone (simulators). Probably that's in the gray zone of unsure assumptions… Does that mean that those who implement create their own "phone" navbar ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on iOS UIAlertController Line separator missing in iPhone 12, iOS 15
I've no iPhone 12 here, sorry I cannot test. But if it does not show on simulator, that's probably a bug.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
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