๐ŸŽ
ios.dev
search
โŒ˜Ctrlk
ios.devchevron-down
๐ŸŽ
ios.dev
  • ๐ŸŽios.dev
  • โญfeatures
  • ๐Ÿ‘”custom
  • ๐ŸฆSwift
    • ๐ŸŽฒmath functions
    • ๐Ÿ”ฐscope
    • โž•operator
    • ๐Ÿ€type
    • ๐Ÿ”ฐstatement
    • ๐Ÿ”ฐflow control
    • ๐Ÿ”ฐCollections
    • ๐Ÿ”ฐSubscripts
    • ๐Ÿ”ฐAttributes
    • ๐Ÿ”ฐPattern Matching
      • ๐Ÿ”ดSentence Patterns
        • ... as! ...
        • (... as? ...)?.method()
        • if let ... as?
        • if/guard case let
        • for case let ... where
        • switch case
        • switch case is ...
        • switch case let ... where
        • switch case let ... as
        • switch on other types
      • operator (~=)
      • enum case pattern
    • ๐Ÿ”ฐExceptions
    • ๐Ÿ›๏ธStandard Library
    • ๐Ÿ”ฐConcurrency
    • ๐Ÿ”ฐFile System
    • ๐Ÿ”ฐNetworking
    • ๐ŸžDebugging
    • ๐Ÿ”ฐInput/Output
    • ๐Ÿ”ฐRegex
    • ๐Ÿ”ฐAccess Control
  • ๐Ÿ”ฐSwiftUI
  • ๐ŸŽ›๏ธwidgets
  • ๐ŸŽData Structures
  • ๐Ÿง Algorithms
  • โ›ฑ๏ธSwift Playgrounds
  • ๐ŸฅAudio / Video
  • โ›”Errors
  • ้™„้Œ„
    • ๐ŸงฉSwift Package
    • ๐Ÿ”ฐDesign Patterns
    • ๐Ÿ› ๏ธXcode
    • ๐Ÿ’ผProjects
    • โœ…Testing System
    • Prototyping
    • ๐Ÿ’กTips
    • JSON
    • Terms
    • ๅ…ถไป–
    • ้›œ่จ˜ ๐Ÿ“ฅ
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. ๐ŸฆSwiftchevron-right
  2. ๐Ÿ”ฐPattern Matching

๐Ÿ”ดSentence Patterns

... as! ...chevron-right(... as? ...)?.method()chevron-rightif let ... as?chevron-rightif/guard case letchevron-rightfor case let ... wherechevron-rightswitch casechevron-rightswitch case is ...chevron-rightswitch case let ... wherechevron-rightswitch case let ... aschevron-rightswitch on other typeschevron-right
PreviousPattern Matchingchevron-leftNext... as! ...chevron-right

Last updated 4 years ago