Questions tagged [reswift]
25 questions
17
votes
1 answer
Stack overflow: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16d09aa00)
Crash description
Recently I'm facing kinda really strange memory issues in one of my iOS/Swift projects. I'm really not sure what's going on and feel it's also not quite easy to describe, but I'll try my best anyway.
It basically behaves like…

d4Rk
- 6,622
- 5
- 46
- 60
9
votes
1 answer
How to perform routing in iOS swift modular application?
I am working on a very big app and decided to go with the modular approach where each feature is implemented as a Framework and one feature should not "know" other features.
I decided to use heavily in ReSwift which is a library to build iOS app…

Ran Hassid
- 2,788
- 1
- 12
- 20
4
votes
1 answer
How to define `newState` in ReSwift with multiple sub-selects?
We've used ReSwift in a few iOS projects and have been loving it. In 4.0, they added the ability to sub-select portions of the state and skipRepeats, either manually or using a store that's Equatable. Subselecting a store is…

shrug
- 191
- 1
- 8
3
votes
1 answer
Declaration 'subscribe' cannot override more than one superclass declaration (ReSwift)
I'm having a problem when overriding a function from the ReSwift Pod. I've got the following mock class:
import Foundation
import Quick
import Nimble
import RxSwift
@testable import MainProject
@testable import ReSwift
class MockReSwiftStore:…

Steven B.
- 1,429
- 2
- 19
- 38
3
votes
1 answer
ReSwift - How to deal with state changes that depend on old state as well as new state in the View
I am trying to work with ReSwift in my ios project and had a question regarding how to deal with changes in my view. I am finding that I need to know what the old state was before I can apply changes proposed by the new state coming in. I never…

sethu
- 8,181
- 7
- 39
- 65
2
votes
1 answer
When using ReSwift with substates, how can I avoid receiving unwanted substate updates, when another substate is updated?
When using ReSwift with substates, how can i avoid receiving unwanted substate update (SubstateA), when updating a another substate (SubstateB)
I though that was the whole point haven substates...
State.swift
struct MainState: StateType {
var…

Dubon Ya'ar
- 349
- 4
- 13
2
votes
1 answer
Where should I store the local state of a Redux middleware?
I’m using Redux to manage the logic of a music player. When it’s playing something and suddenly fails, I want to be able to intercept that action and make the player start again, but only n times, as I don't want to keep automatically retrying…

Daniel
- 683
- 1
- 9
- 20
2
votes
0 answers
ReSwift and State with a reference type property
Since ReSwift is based around immutability of State, the Swift struct is obvious choice to work with.
But what if I really need a reference type property in a State to have a hierarchy of items? Let's say, my Model is composed with trees, so a…

Vitalii Vashchenko
- 1,777
- 1
- 13
- 23
2
votes
1 answer
Redux action with parameter vs multiple actions
What's the recommended way for actions of an API request cycle?
i.e.: I usually have 3 steps
request started (waiting on response)
request finished successfully (and returned a value)
request failed (or returned an error)
I can model those steps…

Rodrigo Ruiz
- 4,248
- 6
- 43
- 75
1
vote
0 answers
Thread 1: signal SIGABRT because of a button inside a NavigationView -> List -> Section
Since Xcode 12, I have a Thread 1: signal SIGABRT, here is the detail of the error:
2020-10-20 00:01:20.989409+0200 App[23604:1417143] precondition failure: imported node deleted before its value was read: 90
The crash appears when I quickly…

Antoine Lefebvre
- 21
- 1
- 3
1
vote
0 answers
How should I handle different transitions to the same state in redux? E.g. I want a state change to be animated, but only sometimes
Background
I’m an iOS dev, but I want to tap the expertise of redux experts on any platform - I started using ReSwift to use redux and I am having difficulty finding a solution to a problem that would seem to be quite common.
Problem
I have a…

ihux
- 164
- 1
- 7
1
vote
0 answers
How to paginate data with Firestore?
I want to paginate my query with Firestore (Firesnapshot and Resiwft). I just don't find a way or can't do it as it is described in the google documents.
case updatePosts(userID: String, posts: [Snapshot])
case…

Peace Cloud
- 43
- 1
- 6
1
vote
0 answers
What is a good way to handle async requests in ReSwift/Redux
To make an asynchronous request a middleware is used in this case, it returns an error after a fixed amount of time.
The app state is properly updated the subscriber view controller presents the error.
On the next instance however this subscriber…

dead_loop
- 41
- 4
1
vote
0 answers
Using Swift + Resift redux library, Is it possible to retrieve the previous state from the store
Using Swift + Resift library, is it possible to retrieve the previous state from Resift's store, in order to compare it with the new state

Dubon Ya'ar
- 349
- 4
- 13
1
vote
1 answer
Redux: best practice (using Swift)
I need advice on best practice with Redux in iOS app.
I am trying to master this architectural pattern, but I am not using Redux+Reactive approach. Just ReSwift + simple declarative code.
The problem I am facing is basic. Storing UIImage.
As far as…

Yevgeniy Leychenko
- 1,287
- 11
- 25