StackOverflow Questions for Tag: rawrepresentable

vacawama
vacawama

Reputation: 154603

RawRepresentable causes infinite loop for JSONEncode

Score: 0

Views: 122

Answers: 1

Read More
Konrad
Konrad

Reputation: 18585

Storing ClosedRange<Float> via @AppStorage

Score: 0

Views: 113

Answers: 1

Read More
Cœur
Cœur

Reputation: 38667

Raw type 'Bool' is not expressible by any literal

Score: 14

Views: 13735

Answers: 5

Read More
Aaron Bratcher
Aaron Bratcher

Reputation: 6451

Is there a clean way of making an enum with associated value conform to rawRepresentable?

Score: 1

Views: 774

Answers: 1

Read More
Siddharth
Siddharth

Reputation: 9574

Enum of structs in Swift 3.0

Score: 17

Views: 17702

Answers: 5

Read More
user14205680
user14205680

Reputation: 113

Swift - Why String doesn't conform to RawRepresentable?

Score: 0

Views: 2194

Answers: 2

Read More
Benjohn
Benjohn

Reputation: 13887

Swift protocol for things that convert to and from String

Score: 0

Views: 1762

Answers: 2

Read More
YulkyTulky
YulkyTulky

Reputation: 1086

Protocol 'RawRepresentable' requires 'init(rawValue:)' to be available in iOS 13.0.0 and newer

Score: 0

Views: 355

Answers: 1

Read More
angli1937
angli1937

Reputation: 53

Objc visible string enum but not RawRepresentable

Score: 2

Views: 2296

Answers: 1

Read More
meaning-matters
meaning-matters

Reputation: 22946

How to specify the type of a function parameter with combined type CustomStringConvertible and RawRepresentable?

Score: 1

Views: 792

Answers: 1

Read More
sger
sger

Reputation: 740

Objective-C enums conform to RawRepresentable

Score: 2

Views: 272

Answers: 1

Read More
Boon
Boon

Reputation: 41480

Swift enum inheritance

Score: 87

Views: 69933

Answers: 3

Read More
Shades
Shades

Reputation: 5616

Type 'Error' does not conform to protocol 'RawRepresentable'

Score: 12

Views: 11623

Answers: 5

Read More
J. Doe
J. Doe

Reputation: 13043

How to use generic default parameters

Score: 3

Views: 372

Answers: 1

Read More
bingbomboom
bingbomboom

Reputation: 209

Struct does not conform to RawRepresentable protocol?

Score: 0

Views: 2315

Answers: 1

Read More
Mark A. Donohoe
Mark A. Donohoe

Reputation: 30378

Is there a way to simplify this 'matrix of overloads' based on argument types which are all ultimately representable by a specific type?

Score: 1

Views: 96

Answers: 2

Read More
Paul Young
Paul Young

Reputation: 1479

In Swift, how can I specify a typealias that restricts RawRepresentable to String?

Score: 17

Views: 7994

Answers: 4

Read More
bitemybyte
bitemybyte

Reputation: 1089

Invalid redeclaration of rawValue in Release build

Score: 0

Views: 1163

Answers: 1

Read More
Mark A. Donohoe
Mark A. Donohoe

Reputation: 30378

Without using an associated type, can you restrict a variable in a protocol to only RawRepresentables where the raw type is String?

Score: 1

Views: 568

Answers: 2

Read More
Nicolas Miari
Nicolas Miari

Reputation: 16246

Defining a Swift Protocol for Arbitrary, Int-based Enums

Score: 6

Views: 1667

Answers: 2

Read More
PreviousPage 1Next