issues
search
swiftfn
/
SkiaSwift
Swift wrapper for SkiaSharp's C API
12
stars
1
forks
source link
Consider using typealias for enums
#3
Closed
ngocdaothanh
closed
5 years ago
ngocdaothanh
commented
5 years ago
Advantages:
Simplify code
No need to sync code if there are enum changes in the future
Disadvantages:
Ugly names in upper case
Have to import both SkiaSwift and CSkia
Xcode doesn't support autocomplete when typing
EnumName.
Doc generated by
jazzy
amd
Workspace
doesn't show the enum values
ngocdaothanh
commented
5 years ago
Decision:
Do not use typealias for enums.
Using for structs is OK.
Advantages:
Disadvantages:
EnumName.