Skip to content

Commit ec3db61

Browse files
committed
chor(blog-redesign): Revert updates to disrelated files.
1 parent eede6d7 commit ec3db61

File tree

8 files changed

+32
-42
lines changed

8 files changed

+32
-42
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
assets/javascripts/new-javascripts/vendor/
2-
/posts
2+
posts/

_data/new-data/get-started/storybook/image-text-row.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
headline: Image Text Row
22
image:
3-
src: /assets/images/swift-redesign-blog/home_light@2x.jpg
3+
src: /assets/images/placeholders/image_placeholder_large@2x.png
44
alt: a place holder
55
copy:
66
headline: Lorem Ipsum

_includes/new-includes/components/card-grid.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ <h2>{{ include.content.title }}</h2>
4444
</li>
4545
{% endfor %}
4646
</ul>
47-
{% endif %} {% if include.content.text %}
47+
{% endif %}
48+
{% if include.content.text %}
4849
<p>{{ include.content.text }}</p>
49-
{% endif %} {% if include.content.link %}
50+
{% endif %}
51+
{% if include.content.link %}
5052
<a href="{{ include.content.link.url }}"
5153
>{{ include.content.link.text }}
5254
</a>
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
<div class="hero-card {% if include.stand_alone %} content-wrapper{% endif %}">
2-
{% if include.title %}
3-
<h3>{{include.title}}</h3>
4-
{% endif %} {% if include.image %}<img
5-
src="{{ include.image.url}}"
6-
alt="{{include.image.alt}}"
7-
/>{% endif %}
2+
<img src="{{ include.image.url}}" alt="{{include.image.alt}}" />
83
</div>

_posts/2015-12-03-swift-linux-port.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,60 +15,60 @@ architecture on Linux.
1515

1616
Here are a few highlights of what's working in the port today:
1717

18-
- **Swift without the Objective-C Runtime**: Swift on Linux does not
18+
* **Swift without the Objective-C Runtime**: Swift on Linux does not
1919
depend on the Objective-C runtime nor includes it. While Swift was
2020
designed to interoperate closely with Objective-C when it is present,
2121
it was also designed to work in environments where the Objective-C
2222
runtime does not exist.
2323

24-
- **The core Swift Language and [Standard Library]** on Linux shares most of
24+
* **The core Swift Language and [Standard Library]** on Linux shares most of
2525
the same implementation and APIs as on Apple platforms. There are some
2626
slight differences of behavior because of the absence of the
2727
Objective-C runtime on Linux (noted below).
2828

29-
- **The Glibc Module**: Most of the Linux C standard library is available
29+
* **The Glibc Module**: Most of the Linux C standard library is available
3030
through this module similar to the Darwin module on Apple platforms.
3131
Some headers aren't yet imported into the module, such as tgmath.h.
3232

3333
To try it out, just `import Glibc`.
3434

35-
- **Swift Core Libraries**: The [Core Libraries] provide implementations
35+
* **Swift Core Libraries**: The [Core Libraries] provide implementations
3636
of core APIs from Foundation and XCTest to be used on Linux without
3737
Objective-C . The intention is that these APIs are available in a
3838
cross-platform manner regardless of whether you are using Swift on
3939
Apple's platforms or Swift on Linux.
4040

41-
- **LLDB Swift debugging and the REPL**: You can [debug your Swift
41+
* **LLDB Swift debugging and the REPL**: You can [debug your Swift
4242
binaries] and [experiment in the REPL] just like you do on macOS.
4343

44-
- **The Swift Package Manager** is a first class citizen as it is on
44+
* **The Swift Package Manager** is a first class citizen as it is on
4545
Apple's platforms.
4646

4747
Here are some things that aren't quite working yet or are planned for
4848
the future:
4949

50-
- **libdispatch**: Part of the Core Libraries, updated Linux support is
50+
* **libdispatch**: Part of the Core Libraries, updated Linux support is
5151
in progress. You can follow development on the [libdispatch project on
5252
GitHub].
5353

54-
- **Some C APIs**: Although this is generally true for all of our
54+
* **Some C APIs**: Although this is generally true for all of our
5555
supported platforms, a few constructs in C aren't imported yet into
5656
Swift. This will cause some APIs to be unavailable, such as those that
5757
contain varargs / `va_list`. However, in recent months Swift's
5858
interoperability with C has significantly advanced, gaining support
5959
for named and anonymous unions, anonymous structs, and bitfields.
6060

61-
- **Some `String` APIs**: The Standard Library's `String` is missing implementations
61+
* **Some `String` APIs**: The Standard Library's `String` is missing implementations
6262
of several important APIs because they are currently tied to the
6363
implementation of `NSString` on Apple's platforms.
6464

65-
- **Runtime Introspection**: When a Swift class on Apple's platforms is
65+
* **Runtime Introspection**: When a Swift class on Apple's platforms is
6666
marked `@objc` or subclasses `NSObject` you can use the Objective-C
6767
runtime to enumerate available methods on an object or call methods
6868
using selectors. Such capabilities are absent because they depend on
6969
the Objective-C runtime.
7070

71-
- `Array<T> as? Array<S>`: Some mechanisms, such as casting
71+
* `Array<T> as? Array<S>`: Some mechanisms, such as casting
7272
containers with different associated types, currently do not work as
7373
they relied on bridging mechanisms with Objective-C.
7474

_posts/2024-03-25-adwaita-swift.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
layout: post
33
published: true
44
date: 2024-03-25 10:00:00
5-
title: 'Writing GNOME Apps with Swift'
5+
title: "Writing GNOME Apps with Swift"
66
author: [davidswift]
77
category: 'Developer Tools'
88
---
99

1010
Swift is well-suited for creating user interfaces thanks to the clean syntax, static typing, and special features making code easier to write.
11-
[Result builders](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/advancedoperators/#Result-Builders), combined with Swift's [closure expression syntax](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/closures/#Closure-Expression-Syntax), can significantly enhance code readability.
11+
[Result builders](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/advancedoperators/#Result-Builders), combined with Swift's [closure expression syntax](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/closures/#Closure-Expression-Syntax), can significantly enhance code readability.
1212

1313
[Adwaita for Swift](https://github.com/AparokshaUI/adwaita-swift) leverages these Swift features to provide an intuitive interface for developing applications for the [GNOME](https://www.gnome.org/) platform.
1414
GNOME is a popular, open source desktop environment for Linux, known for its emphasis on simplicity and accessibility.
1515
It offers an intuitive user interface, with a vast app ecosystem built using its modern Adwaita design language.
1616
Explore a collection of great apps under [Apps for GNOME](https://apps.gnome.org).
1717

1818
Let's look at a code example of using Adwaita for Swift.
19-
The following code snippet defines a _view_, which represents a part of the user interface inside a window.
19+
The following code snippet defines a _view_, which represents a part of the user interface inside a window.
2020

2121
```swift
2222
struct Counter: View {
@@ -42,22 +42,19 @@ struct Counter: View {
4242

4343
A view can be nested within other views or added as the child of a window.
4444

45-
Its content can be modified from outside that view and is influenced by its position in the view hierarchy.
45+
Its content can be modified from outside that view and is influenced by its position in the view hierarchy.
4646
This makes it easier to compose views to produce different results.
4747
The screenshot shows one simple possibility.
4848

4949
![A screenshot of the counter example app.](/assets/images/2024-03-14-adwaita-swift/demo.png){:style="max-width: 100%; height: auto; width: unset; margin: auto auto; display: block;"}
5050

5151
## Motivation
52-
5352
The primary motivation for this package is to enable the use of Swift when writing GNOME apps, for all the reasons outlined above. But there are a few additional reasons:
5453

5554
### Declarative
56-
57-
While there are already libadwaita and GTK bindings for numerous modern programming languages, including Rust, Python, and JavaScript, all official bindings follow an _imperative_ coding style.
55+
While there are already libadwaita and GTK bindings for numerous modern programming languages, including Rust, Python, and JavaScript, all official bindings follow an _imperative_ coding style.
5856
This can be verbose and harder to follow than a declarative style as user interfaces are constructed using a series of commands.
5957
The following Python code serves as an illustration of this.
60-
6158
```python
6259
class Counter(Gtk.Box):
6360

@@ -89,22 +86,19 @@ class Counter(Gtk.Box):
8986
This Python code uses the [PyGObject](https://gnome.pages.gitlab.gnome.org/pygobject/) library and produces the same user interface as the Swift code above.
9087

9188
### Ease of Use
92-
9389
As you can see, Adwaita for Swift is built around _data_.
9490
For example, changing the variable `count` when pressing one of the buttons in the sample app will automatically update the user interface.
9591
Traditional bindings require you to call a function on the object holding a widget that should update its content once a value changes.
9692

9793
If you decide to store the value on the disk so that it persists between startups of the app, you would have to add a lot of complexity to your code using traditional bindings.
9894
Adwaita for Swift enables you to simply add a unique identifier to the variable that should be stored, and will take care of the rest.
99-
10095
```swift
10196
@State("count") private var count = 0
10297
```
10398

10499
There is also a simple and safe approach for localization with the [Localized](https://github.com/AparokshaUI/Localized) package.
105100

106101
### Readability
107-
108102
The simplicity coming with the data-centric approach has a positive impact on readability.
109103

110104
Another point is the declarative definition of the user interface itself. You can focus on what the app should look like and how it should behave rather than how to achieve those results.
@@ -125,7 +119,6 @@ var view: Body {
125119
```
126120

127121
### Cross-Platform App Development
128-
129122
Adwaita for Swift is useful in a number of ways:
130123

131124
- You can write apps that run on Linux, macOS and Windows with a single codebase.
@@ -146,11 +139,11 @@ Learn how to publish your apps [in the Adwaita for Swift documentation](https://
146139
Each contribution to this project is highly appreciated.
147140

148141
You can:
149-
150142
- Create an app! Use the [template repository](https://github.com/AparokshaUI/AdwaitaTemplate) as a starting point and refer to the [tutorial](https://david-swift.gitbook.io/adwaita/gettingstarted). Feel free to showcase your project in the [discussions](https://github.com/AparokshaUI/adwaita-swift/discussions/categories/show-and-tell). Note that libadwaita works best on Linux. If you're on a newer Mac and interested in Linux, check out [Asahi Linux](https://asahilinux.org/fedora/?ref=upstract.com).
151143
- Open [issues](https://github.com/AparokshaUI/adwaita-swift/issues) if you find any problems or if you have an idea, or participate in the [dicussions](https://github.com/AparokshaUI/adwaita-swift/discussions) by asking questions, dicussing ideas, or informing others about your work.
152144
- Write [documentation](https://david-swift.gitbook.io/adwaita/) to help others understand Adwaita for Swift.
153145
- Simply star the [repository](https://github.com/AparokshaUI/adwaita-swift) to improve its discoverability.
154146
- Take a look at the [Memorize](https://flathub.org/apps/io.github.david_swift.Flashcards) app. It is the first app on Flathub built using Adwaita for Swift.
155147

156148
Thanks for your participation ❤️
149+

_posts/2025-03-31-swift-6.1-released.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ published: true
44
date: 2025-03-31 10:00:00
55
title: Swift 6.1 Released
66
author: [hborla]
7-
category: 'Language'
87
featured-image:
98
url: '/assets/images/placeholders/image_placeholder_large.png'
109
alt: 'An FPO image for a blog.'
@@ -42,7 +41,7 @@ nonisolated extension S: CustomStringConvertible, Equatable {
4241
}
4342
```
4443

45-
Swift 6.1 also improves type inference for task groups by inferring the child task result type of `withTaskGroup` and `withThrowingTaskGroup`. Previously, you always had to write the child task result type as an argument when creating the task group:
44+
Swift 6.1 also improves type inference for task groups by inferring the child task result type of `withTaskGroup` and `withThrowingTaskGroup`. Previously, you always had to write the child task result type as an argument when creating the task group:
4645

4746
```swift
4847
let messages = await withTaskGroup(of: Message.self) { group in
@@ -112,7 +111,7 @@ You can find a complete list of language proposals that were accepted through th
112111

113112
## Package and build improvements
114113

115-
Swift 6.1 introduces _package traits_, a new configuration for packages that allows them to offer different APIs and features when used in specific environments, such as Embedded Swift and WebAssembly. Package authors can define a set of traits in their `Package.swift` that their package offers, which provide a way to express conditional compilation and optional dependencies. The package can specify a set of default traits that are enabled in clients, and clients can customize the traits they use when they declare the dependency:
114+
Swift 6.1 introduces *package traits*, a new configuration for packages that allows them to offer different APIs and features when used in specific environments, such as Embedded Swift and WebAssembly. Package authors can define a set of traits in their `Package.swift` that their package offers, which provide a way to express conditional compilation and optional dependencies. The package can specify a set of default traits that are enabled in clients, and clients can customize the traits they use when they declare the dependency:
116115

117116
```swift
118117
dependencies: [
@@ -165,7 +164,7 @@ func doSomething(first: String?, second: Int) -> Float
165164
func doSomething(first: String?, second: Int) -> Double
166165
```
167166

168-
Previously, if you wrote a link to one of these overloads you needed to include a short hash of that symbol’s unique identifier to disambiguate the link and uniquely reference the specific overload. Swift-DocC's warnings aided in writing these hashes but a person can't decode the resulting hash suffix (`-3c5j`) to determine which overload the link is referring to. Now, you can use a combination of parameter types and return types—like `-(String,_)`, `->Float,` or `-(String?,_)->Double`—to disambiguate the link and uniquely reference a specific overload.
167+
Previously, if you wrote a link to one of these overloads you needed to include a short hash of that symbol’s unique identifier to disambiguate the link and uniquely reference the specific overload. Swift-DocC's warnings aided in writing these hashes but a person can't decode the resulting hash suffix (`-3c5j`) to determine which overload the link is referring to. Now, you can use a combination of parameter types and return types—like `-(String,_)`, `->Float,` or `-(String?,_)->Double`—to disambiguate the link and uniquely reference a specific overload.
169168

170169
You can discover the minimal combination of parameter types and return types for each overload from Swift-DocC’s warnings about ambiguous symbol links. For more details, see [the Ambiguous Symbol Links section of Linking to Symbols and Other Content](/documentation/docc/linking-to-symbols-and-other-content#Ambiguous-Symbol-Links).
171170

_posts/2025-06-04-redesigned-swift-org-is-now-live.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: post
33
published: true
44
date: 2025-06-04 10:00:00
5-
title: 'Redesigned Swift.org is now live'
5+
title: "Redesigned Swift.org is now live"
66
author: [shahmishal]
77
category: 'Community'
88
---
@@ -35,8 +35,9 @@ The homepage now highlights Swift's strengths alongside code examples that illus
3535

3636
We look forward to hearing your feedback on this first set of changes as we continue to redesign other sections of the site. There are several ways to offer feedback on the redesign and to get involved:
3737

38-
- A [forum announcement](https://forums.swift.org/t/redesigned-swift-org-is-now-live/80296) has been shared on the forums that can be used for discussion, and the website repository has GitHub issues.
39-
- The website itself is open source, and your contributions to the [swiftlang/swift-org-website](https://github.com/swiftlang/swift-org-website) repository are welcome.
40-
- [The Swift Information Architecture Project](https://forums.swift.org/t/announcing-the-swift-information-architecture-project/75866) is an ongoing effort that has helped inform decisions related to the site redesign.
38+
* A [forum announcement](https://forums.swift.org/t/redesigned-swift-org-is-now-live/80296) has been shared on the forums that can be used for discussion, and the website repository has GitHub issues.
39+
* The website itself is open source, and your contributions to the [swiftlang/swift-org-website](https://github.com/swiftlang/swift-org-website) repository are welcome.
40+
* [The Swift Information Architecture Project](https://forums.swift.org/t/announcing-the-swift-information-architecture-project/75866) is an ongoing effort that has helped inform decisions related to the site redesign.
41+
4142

4243
Thank you to the website workgroup and community members for contributing to these improvements.

0 commit comments

Comments
 (0)