objc swift ios
- Repo stars 0
- Author repo skills-registry
- Domain
- Other
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Runtime evidence
- Not run; no isolated runtime test evidence is currently recorded
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No explicit requirements detected
- Detected file/system behavior
-
- Read-only
- Network behavior
- Local-only
- Install commands
- None (reference only)
Heads up: Tool permissions are not declared; actual access depends on the runtime.
# Objective-C / Swift & repo layout – Contentstack iOS Persistence
## When to use
- You add or rename `.h` / `.m` files under `ContentstackPersistence/`, `ContentstackPersistenceCoredata/`, or `ContentstackPersistenceRealm/`
- You expose symbols to Swift consumers (`@import` / `import` patterns in README)
- You align with existing naming and module structure
## Instructions
### Language
- **Primary implementation language:** Objective-C (`.m` / `.h`).
- **Swift:** Documented in [README.md](../../README.md) via module imports; keep public APIs Objective-C–friendly (`NS_SWIFT_NAME` only if you introduce names that need Swift polish—follow existing project style).
### Layout (by folder)
| Path | Role |
| --- | --- |
| `ContentstackPersistence/` | Core framework: `SyncManager`, `PersistenceModel`, protocols, umbrella `ContentstackPersistence.h` |
| `ContentstackPersistenceCoredata/` | Core Data store implementation |
| `ContentstackPersistenceRealm/` | Realm store implementation |
| `ContentstackPersistenceTests/` | XCTest sources |
### Headers and modules
- Public API is driven by **`s.public_header_files`** in each podspec—new public headers must be listed there.
- Keep umbrella / main header includes predictable; consumers may use `#import <Module/Module.h>` or `@import Module`.
### Naming and style
- Match existing patterns: Objective-C naming, file names aligned with class names (e.g. `SyncManager.h` / `SyncManager.m`).
- Avoid drive-by reformatting unrelated code in the same change as feature work.
## References
- [contentstack-ios-persistence-sdk](../contentstack-ios-persistence-sdk/SKILL.md)
- [testing](../testing/SKILL.md)
---
> Source: [contentstack/contentstack-ios-persistence](https://github.com/contentstack/contentstack-ios-persistence) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
Sections and files
Listed in source order.
sections -> When to use → Instructions → Language → Layout (by folder) → Headers and modules → Naming and style
terms -> Primary implementation language · Swift · s.publicheaderfiles · - Primary implementation language: Objective-C (.m / .h). · - Public API is driven by s.publicheaderfiles in each podspec—new public headers must be listed there. · - Match existing patterns: Objective-C naming, file names aligned with class names (e.g.
files/cmd -> ContentstackPersistence/ · ContentstackPersistenceCoredata/ · ContentstackPersistenceRealm/ · @import · import · NS_SWIFT_NAME · SyncManager · PersistenceModel
body sha256 -> 3e658d670e32
When to use
You add or rename
.h/.mfiles underContentstackPersistence/,ContentstackPersistenceCoredata/, orContentstackPersistenceRealm/You expose symbols to Swift consumers (@import/importpatterns in README) You align with existing naming and module structureLanguage
Primary implementation language: Objective-C (
.m/.h). Swift: Documented in README.md via module imports; keep public APIs Objective-C–friendly (NS_SWIFT_NAMEonly if you introduce names that need Swift polish—follow existing project style).Layout (by folder)
Path · Role
ContentstackPersistence/· Core framework:SyncManager,PersistenceModel, protocols, umbrellaContentstackPersistence.hContentstackPersistenceCoredata/· Core Data store implementationContentstackPersistenceRealm/· Realm store implementationContentstackPersistenceTests/· XCTest sourcesHeaders and modules
Public API is driven by
s.public_header_filesin each podspec—new public headers must be listed there. Keep umbrella / main header includes predictable; consumers may use#import <Module/Module.h>or@import Module.Naming and style
Match existing patterns: Objective-C naming, file names aligned with class names (e.g.
SyncManager.h/SyncManager.m). Avoid drive-by reformatting unrelated code in the same change as feature work.