Skip to content

[Prototype] DO NOT MERGE: Move BaseRow to protocol - #18

Open
haojianzong wants to merge 6 commits into
developfrom
move-baserow-to-protocol
Open

[Prototype] DO NOT MERGE: Move BaseRow to protocol#18
haojianzong wants to merge 6 commits into
developfrom
move-baserow-to-protocol

Conversation

@haojianzong

@haojianzong haojianzong commented Jul 5, 2022

Copy link
Copy Markdown
Owner

Make this PR to play with new Apple APIs.

Using Swift 5.7 new features, we now can migrate BaseRow from a base class to protocol with any keywords.

image

Please build this branch with Xcode 14 beta, because building with Xcode 13 will generate this error because it is new swift feature:

image

@haojianzong

haojianzong commented Jul 11, 2022

Copy link
Copy Markdown
Owner Author

3 WWDC sessions:

What's new in swift generics
Embrace Swift Generics

Screen Shot 2022-07-05 at 11 21 26

Screen Shot 2022-07-05 at 11 21 50

Screen Shot 2022-07-05 at 11 22 39

Design protocol interfaces in Swift: type eraser, type relationships

Screen Shot 2022-07-05 at 13 51 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant