Originally created by @RosalieChang on GitHub (Jun 14, 2018).
I am struggling a bit with generics in Swift.
I have the following code:
XKNavBar extends from XKBaseWidget
The code in CoreStore 3.1.1 is working, but upgrading to CoreStore 4.2.3 is not.
I guess that might be related the following?
Any idea how to solve this problem?
Thanks.
Originally created by @RosalieChang on GitHub (Jun 14, 2018).
I am struggling a bit with generics in Swift.
I have the following code:

XKNavBar extends from XKBaseWidget


The code in CoreStore 3.1.1 is working, but upgrading to CoreStore 4.2.3 is not.
I guess that might be related the following?

Any idea how to solve this problem?
Thanks.
adam
added the question label 2025-12-29 18:24:29 +01:00
@JohnEstropia commented on GitHub (Jun 15, 2018):
@RosalieChang You can set the generic type and the actual dynamic type for `Into` and `From` separately:
```swift
Into<XKBaseWidget>(XKNavBar.self)
From<XKBaseWidget>(XKNavBar.self)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @RosalieChang on GitHub (Jun 14, 2018).
I am struggling a bit with generics in Swift.
I have the following code:

XKNavBar extends from XKBaseWidget


The code in CoreStore 3.1.1 is working, but upgrading to CoreStore 4.2.3 is not.

I guess that might be related the following?
Any idea how to solve this problem?
Thanks.
@JohnEstropia commented on GitHub (Jun 15, 2018):
@RosalieChang You can set the generic type and the actual dynamic type for
IntoandFromseparately:@RosalieChang commented on GitHub (Jun 16, 2018):
Thank you very much 👍 the problem has been solved.