mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
DESIGN.md
This commit is contained in:
1 parent
fa15cfb30f
commit
f937560e1d
1 file changed
+1
-1
@@ -5,7 +5,7 @@ More than caveats or defects, there are a few glitches, or surprises in the GRDB
|
||||
|
||||
- **Why is RowModel a class, when protocols are all the rage?**
|
||||
|
||||
Easy: Swift protocols don't provide `super`.
|
||||
Easy: Swift protocols don't provide `super`, and `super` is what turns RowModel into the flexible base class you need when you implement your specific needs:
|
||||
|
||||
```swift
|
||||
// A RowModel that makes sure its UUID is set before insertion:
|
||||
|
||||
Reference in new issue
Block a user