forkingdog / forkingdog/FDStackView

There is a difference of function from FDStackView to UIStackView. “- (void)insertArrangedSubview:(UIView *)view atIndex:(NSUInteger)stackIndex” /

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
2.5k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

In UIStackView :
/*
Adds the view as a subview of the container if it isn't already.
Updates the stack index (but not the subview index) of the
arranged subview if it's already in the arrangedSubviews list.
*/
- (void)insertArrangedSubview:(UIView *)view atIndex:(NSUInteger)stackIndex;

But FDStackView can not update it.

So that I have to treate the function differently.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating FDStackView's implementation of insertArrangedSubview:atIndex: and compare its behavior with the UIStackView contract quoted in the issue. Verify the case where an existing arranged subview is inserted at a different stack index; the work is done when that index is updated consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.