Post

Replies

Boosts

Views

Activity

Reply to NSScrollview - Pagination effect - Stop animation
Great you found a fix. But with duration of 0.0, what is the interest of running animation ? You should get the same result by calling directly setBoundsOrigin(NSMakePoint(0, scrollView.contentView.bounds.origin.y)) I was also wondering what do you expect by animating the bounds origin ? I remember I once had problems to stop Animations with removeAllAnimations. The case: animating a window resize by setting its frame. the button (inside the view that was animated) that was supposed to stop it did react (highlighted) but did not execute apparently. I found out that it was as if the animator created a new view and was performing animation on it ; hence the removeAllAnimations was not sent to the right one. But if animation was to set alpha of a label, it could be interrupted by the button action (button was not included in the animation). Maybe (I'm not sure) animating the bounds create a similar issue.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’21
Reply to screenshots for app review
You should just run your app in the right simulator and do Command-S to get the screenshot you need. Open your app in Xcode select the simulator at top of window Run your app You need to do this for at least 4 devices sizes. I use : iPhone 12 Pro Max: 6.5" iPhone 8 Plus 5.5" iPad Pro (12.9") (4th Gen) or (3rd Gen) iPad Pro (12.9") (2nd Gen) That fit the required sizes for AppStore Connect: If you localise in several languages, you have to repeat for every language. Please ask if something unclear. Otherwise, good luck and don't forget to close the thread.
Oct ’21
Reply to What are the SKPhysics settings to make a ball bounce?
I probably miss something (as I'm not using SpriteKit a lot). In init(edgeLoopFrom rect: CGRect) rect is the rectangle that defines the edges. The rectangle is specified relative to the owning node’s origin. So you need only to set with your own rect self.physicsBody = SKPhysicsBody(edgeLoopFrom: myOwnRect) How did you define this rect in yourLine ?
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to Cannot convert value of type 'AnyViewModel<BookListState, Never>.Type' to expected argument type 'AnyViewModel<BookListState, Never>'
viewModel is not defined for ContentView (at least with the code you showed). Where did you declare it ? You could declare it locally (as seen in tutorial you used):   var body: some View {         let viewModel = AnyViewModel(BookListViewModel(service: bookService))    BookListView(viewModel: viewModel)   }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to How to access variable in separate function
Create a button in Practice View calling changeValue. struct Practise: View { @State var value = false func changeValue(){ // Change Value here value = !value // we toggle // could call as well:         value.toggle() } var body: some View { Text("Hello, World! \(String(value))") Button(action: changeValue) { Text("Change") } } } struct practise_Previews: PreviewProvider { static var previews: some View { Practise() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to NSScrollview - Pagination effect - Stop animation
Great you found a fix. But with duration of 0.0, what is the interest of running animation ? You should get the same result by calling directly setBoundsOrigin(NSMakePoint(0, scrollView.contentView.bounds.origin.y)) I was also wondering what do you expect by animating the bounds origin ? I remember I once had problems to stop Animations with removeAllAnimations. The case: animating a window resize by setting its frame. the button (inside the view that was animated) that was supposed to stop it did react (highlighted) but did not execute apparently. I found out that it was as if the animator created a new view and was performing animation on it ; hence the removeAllAnimations was not sent to the right one. But if animation was to set alpha of a label, it could be interrupted by the button action (button was not included in the animation). Maybe (I'm not sure) animating the bounds create a similar issue.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to NSScrollview - Pagination effect - Stop animation
Removed - Duplicate answer
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to screenshots for app review
You should just run your app in the right simulator and do Command-S to get the screenshot you need. Open your app in Xcode select the simulator at top of window Run your app You need to do this for at least 4 devices sizes. I use : iPhone 12 Pro Max: 6.5" iPhone 8 Plus 5.5" iPad Pro (12.9") (4th Gen) or (3rd Gen) iPad Pro (12.9") (2nd Gen) That fit the required sizes for AppStore Connect: If you localise in several languages, you have to repeat for every language. Please ask if something unclear. Otherwise, good luck and don't forget to close the thread.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Battery health drop faster
Yes there is something behind, but maybe not what you think. Just the iPhone having a lot of work to do for several days ! Read this instructive article: h t t p s : / / w w w.zdnet.com/article/ios-15-destroyed-your-iphones-battery-life-dont-panic/
Replies
Boosts
Views
Activity
Oct ’21
Reply to Swift reusable cells with corrupted indexPath
Thanks. Where exactly does it crash ? What is the exact error message ? I do not find the initialiser for cell.initialize(withDelegate:)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What are the SKPhysics settings to make a ball bounce?
I probably miss something (as I'm not using SpriteKit a lot). In init(edgeLoopFrom rect: CGRect) rect is the rectangle that defines the edges. The rectangle is specified relative to the owning node’s origin. So you need only to set with your own rect self.physicsBody = SKPhysicsBody(edgeLoopFrom: myOwnRect) How did you define this rect in yourLine ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot convert value of type 'AnyViewModel<BookListState, Never>.Type' to expected argument type 'AnyViewModel<BookListState, Never>'
viewModel is not defined for ContentView (at least with the code you showed). Where did you declare it ? You could declare it locally (as seen in tutorial you used):   var body: some View {         let viewModel = AnyViewModel(BookListViewModel(service: bookService))    BookListView(viewModel: viewModel)   }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to access variable in separate function
Create a button in Practice View calling changeValue. struct Practise: View { @State var value = false func changeValue(){ // Change Value here value = !value // we toggle // could call as well:         value.toggle() } var body: some View { Text("Hello, World! \(String(value))") Button(action: changeValue) { Text("Change") } } } struct practise_Previews: PreviewProvider { static var previews: some View { Practise() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Unable to register as an Apple Developer
What request exactly ? Could you post a screenshot (hide confidential details) of the request screen that is refused ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Support both 5.5 & 6.5 inch device
You should change "Aspect Fill" to "Aspect Fit"
Replies
Boosts
Views
Activity
Oct ’21
Reply to cannot find type in scope xcode 13
Could you post the code where you get the error message, as well as the needed context ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to No puedo instalar Xcode en mi mackbook pro
Necesita al menos cerca 50 GB disponibles.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Black screen when running the app on the iPad app
Could you show all the func you have in AppDelegate and SceneDelegate ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to ForEach - Deleting last index causes Index out of bounds error
Please show the complete code for ForEach(array of objects ...) { Do you define the id ? ForEach(arrayOfObjects, id: \.self )
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iphone storage showing incorrect storage limit
You'd better ask this question to Apple Support. Link at the bottom right of this page (Contact Us). Good luck.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’21