Skip to content

Commit 27eb319

Browse files
authored
Merge pull request #1182 from liveview-native/bc-rename-swift-ui
Rename swift_ui to swiftui
2 parents ce47147 + d5e03a5 commit 27eb319

File tree

10 files changed

+15
-14
lines changed

10 files changed

+15
-14
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ erl_crash.dump
3434
*.ez
3535

3636
# Ignore package tarball (built via "mix hex.build").
37-
live_view_native_swift_ui-*.tar
37+
live_view_native_swiftui-*.tar
3838

3939
# Temporary files, for example, from tests.
4040
/tmp/

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
* removed modifiers and types
66
* migrated to `LiveViewNative.Stylesheet``
7-
* renamed `LiveViewNativeSwiftUi` to `LiveViewNative.SwiftUI` module namespace
7+
* renamed `LiveViewNativeSwiftUi` to `LiveViewNative.SwiftUI` module namespace
8+
* Elixir `app` renamed to from `live_view_native_swift_ui` to `live_view_native_swiftui`

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ This library is **experimental** in the current implementation. As we continue t
3131
### Installation
3232

3333
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
34-
by adding `live_view_native_swift_ui` to your list of dependencies in `mix.exs`:
34+
by adding `live_view_native_swiftui` to your list of dependencies in `mix.exs`:
3535

3636
```elixir
3737
def deps do
3838
[
39-
{:live_view_native_swift_ui, "~> 0.1.0"}
39+
{:live_view_native_swiftui, "~> 0.1.0"}
4040
]
4141
end
4242
```
4343

4444
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
4545
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
46-
be found at <https://hexdocs.pm/live_view_native_swift_ui>.
46+
be found at <https://hexdocs.pm/live_view_native_swiftui>.
4747

4848
## Resources
4949

Sources/LiveViewNative/LiveViewNative.docc/LiveViewNative.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ This library is **experimental** in the current implementation. As we continue t
3535
### Installation
3636

3737
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
38-
by adding `live_view_native_swift_ui` to your list of dependencies in `mix.exs`:
38+
by adding `live_view_native_swiftui` to your list of dependencies in `mix.exs`:
3939

4040
```elixir
4141
def deps do
4242
[
43-
{:live_view_native_swift_ui, "~> 0.1.0"}
43+
{:live_view_native_swiftui, "~> 0.1.0"}
4444
]
4545
end
4646
```
4747

4848
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
4949
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
50-
be found at <https://hexdocs.pm/live_view_native_swift_ui>.
50+
be found at <https://hexdocs.pm/live_view_native_swiftui>.
5151

5252
## Resources
5353

Sources/LiveViewNative/LiveViewNative.docc/Resources/01-01-03-mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule LvnTutorial.MixProject do
4545
{:jason, "~> 1.2"},
4646
{:plug_cowboy, "~> 2.5"},
4747
{:live_view_native, "~> 0.0.8"},
48-
{:live_view_native_swift_ui, "~> 0.0.8"}
48+
{:live_view_native_swiftui, "~> 0.0.8"}
4949
]
5050
end
5151

Sources/LiveViewNative/LiveViewNative.docc/Tutorials/01 Initial List.tutorial

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
@Step {
44-
Next, add the `live_view_native` and `live_view_native_swift_ui` libraries as dependencies.
44+
Next, add the `live_view_native` and `live_view_native_swiftui` libraries as dependencies.
4545

4646
These packages provide supporting functions for applying SwiftUI modifiers to elements from within HEEx templates.
4747

lib/live_view_native/swiftui/platform.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule LiveViewNative.SwiftUI.Platform do
2626
custom_modifiers: struct.custom_modifiers,
2727
default_layouts: @default_layouts,
2828
render_macro: :sigil_SWIFTUI,
29-
otp_app: :live_view_native_swift_ui,
29+
otp_app: :live_view_native_swiftui,
3030
valid_targets: ~w(mac pad phone tv vision watch)a
3131
)
3232
end

lib/mix/tasks/install.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ defmodule Mix.Tasks.Lvn.SwiftUI.Install do
8282
end
8383

8484
defp copy_xcodegen_files(%{native_path: native_path}) do
85-
priv_dir = :code.priv_dir(:live_view_native_swift_ui)
85+
priv_dir = :code.priv_dir(:live_view_native_swiftui)
8686
native_project_dir = Path.join(native_path, "swiftui")
8787
xcodegen_path = Path.join(priv_dir, "xcodegen")
8888

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule LiveViewNative.SwiftUI.MixProject do
33

44
def project do
55
[
6-
app: :live_view_native_swift_ui,
6+
app: :live_view_native_swiftui,
77
version: "0.1.0",
88
elixir: "~> 1.15",
99
description: "LiveView Native platform for SwiftUI",

util/encode_modifiers.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Mix.install([
2-
{:live_view_native_swift_ui, path: "."},
2+
{:live_view_native_swiftui, path: "."},
33
{:live_view_native, git: "https://github.com/liveview-native/live_view_native", branch: "main"},
44
{:html_entities, "~> 0.5"}
55
])

0 commit comments

Comments
 (0)