liveview-native / liveview-native/live_view_native_stylesheet

'Resolvable' is not a member type of enum 'SwiftUICore.Image.ResizingMode'

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
12
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Hello Everyone,

But I'm getting an error in Xcode.

`/Users/me/Library/Developer/Xcode/DerivedData/MyApp-hlfvyarsimtdmpbgmkdfzpbluvjk/SourcePackages/checkouts/liveview-client-swiftui/Sources/LiveViewNative/Stylesheets/Modifiers/Image/ResizableModifier.swift:14:42 'Resolvable' is not a member type of enum 'SwiftUICore.Image.ResizingMode'`

There is no image resizing in the view at all, just a simple Hello iOS.
I should state that this is an existing live-view project. I'm just starting to build out a mobile app for it.

- I have cleaned the build folder in Xcode
- I have updated to the latest package definition in Xcode
- I have also reset package caches

**What am I missing?**

defmodule MyApp.LandingLive.Landing.SwiftUI do
use MyAppNative, [:render_component, format: :swiftui]

```def render(assigns, _interface) do
~LVN"""


Hello iOS!


"""
end
end
```

mix.exs
```defp deps do
[
{:argon2_elixir, "~> 4.0"},
{:bcrypt_elixir, "~> 3.0"},
{:phoenix, "~> 1.8.0", override: true},
{:phoenix_ecto, "~> 4.5"},
{:ecto_sql, "~> 3.13"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 1.1.0", override: true},
{:lazy_html, ">= 0.1.0", only: :test},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:esbuild, "~> 0.10", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.2.0",
sparse: "optimized",
app: false,
compile: false,
depth: 1},
{:swoosh, "~> 1.16"},
{:req, "~> 0.5"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.26"},
{:jason, "~> 1.2"},
{:dns_cluster, "~> 0.2.0"},
{:bandit, "~> 1.5"},
{:ex_aws, "~> 2.1"},
{:ex_aws_s3, "~> 2.0"},
{:hackney, "~> 1.25"},
{:timex, "~> 3.7"},
{:qr_code, "~> 3.2.0"},
{:recase, "~> 0.5"},
{:ex_cldr_numbers, "~> 2.0"},
{:live_view_native, "~> 0.4.0-rc.1"},
{:live_view_native_stylesheet, "~> 0.4.0-rc.1"},
{:live_view_native_swiftui, "~> 0.4.0-rc.1"},
{:live_view_native_live_form, "~> 0.4.0-rc.1"}
]
end
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting Sources/LiveViewNative/Stylesheets/Modifiers/Image/ResizableModifier.swift at line 14 and compare it with the Swift package versions declared in mix.exs. Reproduce the Xcode build error, then verify that the existing Hello iOS project builds without the Image.ResizingMode.Resolvable error.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.