levibostian / levibostian/Swapper-iOS

Allow editing the config options of single instance more easily

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.