You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
- Remake folders as Application, Presentation, Domain, Resources
- Extract use-case code from APIService.swift into MovieAPI.swift
- Rename Extension.swift to StyleExtensions.swift (Need to rework in future)
- Rename Constants.swift to Identifiers.swift (Need to remove after issue #42)
### Describe
Reorganize file structure using example of [Template iOS App using Clean
Architecture and
MVVM](https://github.com/kudoleh/iOS-Clean-Architecture-MVVM)
### Changes Made
1. Reorganize file structure
- Remake folders as Application, Presentation, Domain, Resources
- Extract use-case code from APIService.swift into MovieAPI.swift
- Rename Extension.swift to StyleExtensions.swift (Need to rework in
future)
- Rename Constants.swift to Identifiers.swift (Need to remove after
issue [#42](#42))
2. Remove Main.storyboard
- Delete Main.storyboard
- Add Root ViewController to window at SceneDelegate method
- Delete UISceneStoryboardFile property from info.plist
### Issues Resolved
- #33
### Additional context
`Constants.swift` renamed to `Identifiers.swift` but need to **remove**
after issue [#42](#42))
close#33
<!---
Pull Request title must contains Category, issue number, issue
description
(e.g. "[Feature] #123 Adding new Gestures")
-->
### Describe
`UITableView` `UICollectionView` reuse identifier refactoring
### Changes Made
- Delete `Identifiers.swift`
- Create `ReusableCell` Protocol and Extensions for `UITableView` and
`UICollectionView`
- Replace cell registration and reusing
### Issues Resolved
- #42
### Additional context
About cells in `CreditViewController`
- UITableView is using 2 UITableViewCell: (default `UITableViewCell` and
`CreditTableViewDescriptionCell`)
- Needed to create `CreditTableViewCell` to replace default
`UITableView`
- `CreditTableViewDescriptionCell` is not registered or reused, so there
was some refactoring
### References
[iOS Cell Registration and Reusing with Swift Protocol Extensions and
Generics](https://medium.com/@gonzalezreal/ios-cell-registration-reusing-with-swift-protocol-extensions-and-generics-c5ac4fb5b75e)
[Nicer reuse identifiers with protocols in
Swift](https://medium.com/bleeding-edge/nicer-reuse-identifiers-with-protocols-in-swift-97d18de1b2df)
Situation
Cell identifiers are now managed as constant property.
There's room for improvement using
Protocol
orGenerics
Reference
The text was updated successfully, but these errors were encountered: