fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.29k stars 172 forks source link

[BUG] Crash on simulator #217

Closed fxsalazar closed 3 years ago

fxsalazar commented 3 years ago

Describe the bug Tested the ColorsExampleView on iOS 13 and the simulator just crashed. It worked with iOS 14+ Wanted to make sure that it works on this version.

To Reproduce Just copy paste this code on a sample project

import SwiftUI
import SwiftUIPager

struct ContentView: View {
  var page: Page = .first()
  let colors = [Color.red,Color.blue,Color.black]

  var body: some View {
    Pager(page: page,
          data: colors
          id: \.self,
          content: { color in
            color
          }
    ).itemSpacing(10)
  }
}

Expected behavior It should show the pager in the app

Environment:

Additional context

Here's the log ``` dyld: lazy symbol binding failed: Symbol not found: _$s7SwiftUI18AnimatableModifierPAAE13_makeViewList8modifier6inputs4bodyAA01_fG7OutputsVAA11_GraphValueVyxG_AA01_fG6InputsVAiA01_L0V_ANtctFZ Referenced from: ~/Library/Developer/CoreSimulator/Devices/72908487-2A4D-4649-BA83-A2525D336803/data/Containers/Bundle/Application/D0A8B9A8-6482-4FA0-ADA0-AC9AE7383B8D/App Expected in: /System/Library/Frameworks/SwiftUI.framework/SwiftUI dyld: Symbol not found: _$s7SwiftUI18AnimatableModifierPAAE13_makeViewList8modifier6inputs4bodyAA01_fG7OutputsVAA11_GraphValueVyxG_AA01_fG6InputsVAiA01_L0V_ANtctFZ Referenced from: ~/Library/Developer/CoreSimulator/Devices/72908487-2A4D-4649-BA83-A2525D336803/data/Containers/Bundle/Application/D0A8B9A8-6482-4FA0-ADA0-AC9AE7383B8D/App Expected in: /System/Library/Frameworks/SwiftUI.framework/SwiftUI CoreSimulator 757.5 - Device: iPhone 7 - Runtime: iOS 13.0 (17A577) - DeviceType: iPhone 7 ```