levibostian / levibostian/Swapper-iOS
Allow editing the config options of single instance more easily
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
at this time, the SwapperView instance's config property is pointing to the default config:
public class SwapperView: UIView {
/// Access to `SwapperViewConfig` to set defaults on all instances of `SwapperView`.
public static let defaultConfig: SwapperViewConfig = SwapperViewConfig.shared
/// Override `defaultConfig` for this once instance.
public var config: SwapperViewConfig = SwapperViewConfig.shared {
didSet {
configView()
}
}
This does not allow you to call instance.config.changeSingleValue = 4. I need to be able to change 1 property of an instance without touching the default.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the SwapperView class and its config and defaultConfig properties shown in the issue, then inspect SwapperViewConfig.shared and the configView() call. Determine how an instance can change one configuration value without modifying shared defaults; done means a single instance can edit a property independently while other instances and the default remain unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100